diff --git a/workflow/boolean-conditions.md b/workflow/boolean-conditions.md index 6de5d27..a845a76 100644 --- a/workflow/boolean-conditions.md +++ b/workflow/boolean-conditions.md @@ -4,8 +4,8 @@ Avoid using `>=` and `<=` unless necessary. It's faster to use a simpler compari ```js // slow -// two boolean conditions: `=== -1` and `> -1` -array.indexOf(i) >= -1 +// two boolean conditions: `=== 0` and `> 0` +array.indexOf(i) >= 0 // fast // just one boolean condition: `!== -1`