-
-
Notifications
You must be signed in to change notification settings - Fork 420
Closed
Description
https://github.com/tc39/proposal-change-array-by-copy#overview
Array.prototype.toReversed() -> ArrayArray.prototype.toSorted(compareFn) -> ArrayArray.prototype.toSpliced(start, deleteCount, ...items) -> ArrayArray.prototype.with(index, value) -> Array
TypedArray.prototype.toReversed() -> TypedArrayTypedArray.prototype.toSorted(compareFn) -> TypedArrayTypedArray.prototype.with(index, value) -> TypedArray
-
no-useless-spreadno-useless-spread: CheckArray#{toReversed,toSorted,toSpliced,with}#2030 -
prefer-negative-indexprefer-negative-index: Check.toSpliced()and.with()#2031 -
prefer-set-hasprefer-set-has: SupportArray#{toReversed,toSorted,toSpliced,with}#2032 -
prefer-spreadprefer-spread: Forbid useArray#toSpliced()to copy array #2034
sindresorhus and Cherry
Metadata
Metadata
Assignees
Labels
No labels