@putout/plugin-convert-arguments-to-spread
putout plugin adds ability to convert arguments to spread
Last updated 7 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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 (7 years ago)

2 Versions

  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (10)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |