@putout/plugin-convert-apply-to-spread
🐊Putout plugin adds ability to convert 'apply' to 'spread'
Last updated a year ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-convert-apply-to-spread 
SYNC missed versions from official npm registry.

@putout/plugin-convert-apply-to-spread NPM version

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 -D

Rule

{
    "rules": {
        "convert-apply-to-spread": "on"
    }
}

❌ Example of incorrect code

console.apply(null, arguments);

✅ Example of correct code

console.log(...arguments);

License

MIT

Current Tags

  • 4.0.1                                ...           latest (a year ago)

11 Versions

  • 4.0.1                                ...           a year ago
  • 4.0.0                                ...           3 years ago
  • 3.1.0                                ...           7 years ago
  • 3.0.0                                ...           7 years ago
  • 2.0.0                                ...           7 years ago
  • 1.4.1                                ...           7 years ago
  • 1.4.0                                ...           7 years ago
  • 1.3.0                                ...           7 years ago
  • 1.2.0                                ...           8 years ago
  • 1.1.0                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Total 14
Today 0
This Week 1
This Month 14
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (6)
Dependents (1)

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