$ cnpm install @putout/plugin-remove-useless-for-of
The
Arrayenables storing a collection of multiple items under a single variable name.(c) MDN
????Putout plugin adds ability to remove useless for...of statements. Merged to @putout/plugin-for-of.
npm i @putout/plugin-remove-useless-for-of
{
"rules": {
"remove-useless-for-of": "on"
}
}
for (const a of ['hello']) {
console.log(a);
}
console.log('hello');
MIT
Copyright 2013 - present © cnpmjs.org | Home |