$ cnpm 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
Copyright 2013 - present © cnpmjs.org | Home |