1.0.1 • Published 5 years ago
@putout/plugin-convert-arguments-to-spread v1.0.1
putout-plugin-convert-arguments-to-spread
Renamed to @putout/convert-arguments-to-rest.
putout
plugin adds ability to convert arguments
to spread
.
Install
npm i @putout/plugin-convert-arguments-to-spread -D
Rule
{
"rules": {
"convert-arguments-to-spread": true
}
}
❌ Incorrect code example
function hello() {
console.log(arguments);
}
✅ Correct code Example
function hello(...args) {
console.log(args);
}
License
MIT