$ npm install @putout/plugin-remove-useless-array-from
🐊Putout plugin adds ability to remove useless Array.from(). Merged to @putout/plugin-for-of.
npm i @putout/plugin-remove-useless-array-from
{
"rules": {
"remove-useless-array-from": "on"
}
}
for (const x of Array.from(y)) {}
for (const x of y) {}
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE