Skip to content

Latest commit

 

History

History

plugin-convert-spread-to-array-from

@putout/plugin-convert-spread-to-array-from NPM version

🐊Putout plugin convert spread to Array.from. Not installed, by default, used @putout/plugin-convert-array-copy-to-slice instead.

Install

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

Rule

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

❌ Example of incorrect code

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

✅ Example of correct code

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

License

MIT