README
putout
plugin adds ability to remove useless Array.from
.
Install
npm i @putout/plugin-remove-useless-array-from
Rule
{
"rules": {
"remove-useless-array-from": true
}
}
❌ Incorrect code example
for (const x of Array.from(y)) {}
✅ Correct code Example
for (const x of y) {}
License
MIT