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-length-as-slice-end: Forbid use .length as the end argument of {Array,String,TypedArray}#slice() #2387

Closed
fisker opened this issue Jun 22, 2024 · 1 comment · Fixed by #2400
Assignees

Comments

@fisker
Copy link
Collaborator

fisker commented Jun 22, 2024

Description

Forbid use .length as the end argument of {Array,String,TypedArray}#slice()

Fail

array.slice(start, array.length)
array?.slice(start, array.length)

Pass

array.slice(start)
array?.slice(start)

Additional Info

No response

@fisker fisker self-assigned this Jul 10, 2024
@fisker
Copy link
Collaborator Author

fisker commented Jul 10, 2024

accepted

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.

1 participant