Open sbdchd opened 3 years ago
.some() is equivalent to !!array.find() or array.find() != null
.some()
!!array.find()
array.find() != null
// error !!array.find(someFn) array.find(someFn) != null array.findIndex(someFn) != -1 array.findIndex(someFn) >= 0 array.findIndex(someFn) < 0 Boolean(array.find(someFn)) // okay array.some(checkFn) array.find(someFn) != someValue
Probably want to use type information to avoid false positives
.some()
is equivalent to!!array.find()
orarray.find() != null
Probably want to use type information to avoid false positives