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

2.1.1 • Public • Published

@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

Package Sidebar

Install

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

Weekly Downloads

15,384

Version

2.1.1

License

MIT

Unpacked Size

3.47 kB

Total Files

4

Last publish

Collaborators

  • coderaiser