@putout/plugin-convert-array-copy-to-slice
v4.0.1
Published
šPutout plugin adds ability to convert array copy to slice
Maintainers
Readme
@putout/plugin-convert-array-copy-to-slice 
Spread syntax (
...) allows an array expression to be expanded in places where elements are expected.The
slice()method returns a shallow copy of a portion of an array into a new array.(c) MDN
šPutout plugin convert spread to slice().
Install
npm i @putout/plugin-convert-array-copy-to-slice -DRule
{
"rules": {
"convert-array-copy-to-slice": "on"
}
}ā Example of incorrect code
const places = [...items];ā Example of correct code
const places = items.slice();License
MIT
