@putout/plugin-convert-apply-to-spread
v4.0.1
Published
šPutout plugin adds ability to convert 'apply' to 'spread'
Downloads
78,367
Maintainers
Readme
@putout/plugin-convert-apply-to-spread 
Spread syntax (
...) allows an array expression to be expanded in places where zero or more arguments are expected.(c) MDN
šPutout plugin adds ability to convert apply to spread. Merged with @putout/plugin-spread.
Install
npm i @putout/plugin-convert-apply-to-spread -DRule
{
"rules": {
"convert-apply-to-spread": "on"
}
}ā Example of incorrect code
console.apply(null, arguments);ā Example of correct code
console.log(...arguments);License
MIT
