Skip to content

Bug: Marks the wrong parameter #43

@Jannchie

Description

@Jannchie
[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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions