@putout/plugin-convert-arguments-to-spread
putout plugin adds ability to convert arguments to spread
Last updated 8 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-convert-arguments-to-spread 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.1                                ...           latest (8 years ago)

2 Versions

  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Total 5
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 3
Dependencies (0)
None
Dev Dependencies (10)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE