2.1.1 β€’ Published 1 year ago

@putout/plugin-remove-useless-array-from v2.1.1

Weekly downloads
2,944
License
MIT
Repository
github
Last release
1 year ago

@putout/plugin-remove-useless-array-from NPM version

🐊Putout plugin adds ability to remove useless Array.from(). Merged to @putout/plugin-for-of.

Install

npm i @putout/plugin-remove-useless-array-from

Rule

{
    "rules": {
        "remove-useless-array-from": "on"
    }
}

❌ Example of incorrect code

for (const x of Array.from(y)) {}

βœ… Example of correct code

for (const x of y) {}

License

MIT