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

Bug: Marks the wrong parameter #43

Open
Jannchie opened this issue Mar 18, 2021 · 0 comments
Open

Bug: Marks the wrong parameter #43

Jannchie opened this issue Mar 18, 2021 · 0 comments

Comments

@Jannchie
Copy link

[1, 2, 3].forEach((n) => {}, this);

This is a one line JavaScript code.

It marks the second parameter as "index". But actually it should be "thisArg":

[1, 2, 3].forEach(callbackfn: (n) => {}, index: this);

It should be:

[1, 2, 3].forEach(callbackfn: (n) => {}, thisArg: this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant