# Control flow based in boolean condition

Avoid using `>=` and `<=` unless necessary. It's faster to use a simpler comparison.

```js
// slow
// two boolean conditions: `=== -1` and `> -1`
array.indexOf(i) >= -1

// fast
// just one boolean condition: `!== -1`
array.indexOf(i) !== -1
```

# Control flow based in boolean condition

Avoid using `>=` and `<=` unless necessary. It's faster to use a simpler comparison.

```js
// slow
// two boolean conditions: `=== 0` and `> 0`
array.indexOf(i) >= 0

// fast
// just one boolean condition: `!== -1`
array.indexOf(i) !== -1
```

Make the boolean conditionals examples equivalent
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.