Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no-array-method-this-argument doesn't warn about Array.from() #2144

Closed
EvgenyOrekhov opened this issue May 22, 2023 · 0 comments · Fixed by #2262
Closed

no-array-method-this-argument doesn't warn about Array.from() #2144

EvgenyOrekhov opened this issue May 22, 2023 · 0 comments · Fixed by #2262
Assignees

Comments

@EvgenyOrekhov
Copy link
Contributor

no-array-method-this-argument rule doesn't warn about Array.from()

const foo = Array.from(bar, element => isUnicorn(element), baz);

Expected: Do not use the `this` argument in `Array#from()` warning in the above example for the baz argument.

Actual: no warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants