Open fisker opened 4 years ago
Forgot Array#indexOf()
, seems we can't support it.
We could if we do https://github.com/sindresorhus/eslint-plugin-unicorn/issues/347.
Forgot
Array#indexOf()
, seems we can't support it.
Could maybe be supported if Array#at()
is preferred over Array#indexOf()
so any remaining indexOf
property access must be against strings.
foo.startsWith(bar)
overfoo.indexOf(bar) === 0