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

putout-plugin-convert-spread-to-array-from NPM version Dependency Status

putout plugin convert spread to Array.from.

Install

npm i @putout/plugin-convert-spread-to-array-from

Rule

{
    "rules": {
        "convert-spread-to-array-from": true
    }
}

❌ Incorrect code example

const places = [
    ...runPlugins(),
];

✅ Correct code Example

const places = Array.from(runPlugins());

License

MIT

Current Tags

  • 2.0.0                                ...           latest (7 years ago)

3 Versions

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

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