🐊Putout plugin adds ability to convert array copy to slice
npm install @putout/plugin-convert-array-copy-to-slice[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-convert-array-copy-to-slice.svg?style=flat&longCache=true
[NPMURL]: https://npmjs.org/package/@putout/plugin-convert-array-copy-to-slice"npm"
> 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().
```
npm i @putout/plugin-convert-array-copy-to-slice -D
`json`
{
"rules": {
"convert-array-copy-to-slice": "on"
}
}
`js`
const places = [...items];
`js``
const places = items.slice();
MIT