Package detail

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

coderaiser34.1kMIT2.1.1

🐊Putout plugin adds ability to remove useless 'Array.from()'

putout, putout-plugin, plugin, array-from

readme

@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