@putout/plugin-convert-arguments-to-rest
v4.0.1
Published
šPutout plugin adds ability to convert arguments to rest
Maintainers
Readme
@putout/plugin-convert-arguments-to-rest 
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.
Install
npm i @putout/plugin-convert-arguments-to-rest -DRule
{
"rules": {
"convert-arguments-to-rest": "on"
}
}ā Example of incorrect code
function hello() {
console.log(arguments);
}ā Example of correct code
function hello(...args) {
console.log(args);
}License
MIT
