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

11 Versions

  • 4.0.1                                ...           4 months ago
  • 4.0.0                                ...           3 years ago
  • 3.1.0                                ...           6 years ago
  • 3.0.0                                ...           6 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                                ...           7 years ago
  • 1.1.0                                ...           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 (6)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |