1.0.1 • Published 5 years ago

@putout/plugin-convert-arguments-to-spread v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

putout-plugin-convert-arguments-to-spread NPM version Dependency Status

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