🐊Putout plugin adds ability to convert arguments to rest
npm install @putout/plugin-convert-arguments-to-rest[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-convert-arguments-to-rest.svg?style=flat&longCache=true
[NPMURL]: https://npmjs.org/package/@putout/plugin-convert-arguments-to-rest "npm"
> The rest parameter syntax allows a function to accept an indefinite number of arguments as an array, providing a way to represent variadic functions in JavaScript.
>
> (c) MDN
🐊Putout plugin adds ability to convert arguments to rest. Merged with @putout/plugin-arguments.
```
npm i @putout/plugin-convert-arguments-to-rest -D
`json`
{
"rules": {
"convert-arguments-to-rest": "on"
}
}
`js`
function hello() {
console.log(arguments);
}
`js``
function hello(...args) {
console.log(args);
}
MIT