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

3 Versions

  • 2.0.0                                ...           6 years ago
  • 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 (8)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |