Closed MasterOdin closed 4 years ago
The bitwise operator here messes up the boolean return of .some and causes this check to then always trivially pass.
.some
example:
> !~[1,2].some(v => v === 1); false > !~[1,2].some(v => v === 3); false
Given that .some returns a boolean, we can safely remove the bitwise operator, and get things working as we would expect.
The bitwise operator here messes up the boolean return of
.some
and causes this check to then always trivially pass.example:
Given that
.some
returns a boolean, we can safely remove the bitwise operator, and get things working as we would expect.