Skip to content

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

@fisker

Description

@fisker

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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions