$ cnpm install @putout/plugin-convert-arguments-to-spread
Renamed to @putout/convert-arguments-to-rest.
putout plugin adds ability to convert arguments to spread.
npm i @putout/plugin-convert-arguments-to-spread -D
{
"rules": {
"convert-arguments-to-spread": true
}
}
function hello() {
console.log(arguments);
}
function hello(...args) {
console.log(args);
}
MIT
Copyright 2013 - present © cnpmjs.org | Home |