sindresorhus / eslint-plugin-unicorn

More than 100 powerful ESLint rules

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`prefer-array-find` doesn't warn about `.at(0)`

EvgenyOrekhov opened this issue · comments

prefer-array-find doesn't warn about .at(0)

This code should trigger a warning:

const item = array.filter(x => isUnicorn(x)).at(0);