Skip to content

12$: Improve diagnostic for myArray[a:b] #1226

@strager

Description

@strager

For myArray[a:b], we can suggest writing myArray.slice(a, b-a) instead.

Similarly, for myArray[a:], we can suggest writing myArray.slice(a).

Similarly, for myArray[:b], we can suggest writing myArray.slice(0, b).

Metadata

Metadata

Assignees

No one assigned

    Labels

    for hireGet paid for working on this task: https://quick-lint-js.com/hiring.html

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions