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

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

Open
strager opened this issue Aug 23, 2024 · 1 comment
Open

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

strager opened this issue Aug 23, 2024 · 1 comment
Labels
for hire Get paid for working on this task: https://quick-lint-js.com/hiring.html

Comments

@strager
Copy link
Collaborator

strager commented Aug 23, 2024

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).

@strager strager added the for hire Get paid for working on this task: https://quick-lint-js.com/hiring.html label Aug 23, 2024
@Jetoson
Copy link

Jetoson commented Nov 7, 2024

@strager may I work on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for hire Get paid for working on this task: https://quick-lint-js.com/hiring.html
Projects
None yet
Development

No branches or pull requests

2 participants