Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the boolean conditionals examples equivalent
`array.indexOf(i) >= -1` will return `true` when `array.indexOf(i)` is -1 or greater. `array.indexOf(i) !== -1` will return `true` when `array.indexOf(i)` is not -1. Since `Array.prototype.indexOf` returns values starting from -1, that is equivalent to `array.indexOf(i) >= 0`. This pull request makes both expressions equivalent.
- Loading branch information