$ npm 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
© 2010 - cnpmjs.org x YWFE | Home | YWFE