a bug in comments(forgotten parentheses) resolved. and `Array.indexOf() === -1 ` changed to `Array.includes()`