$ cnpm install @putout/plugin-remove-unused-for-of-variables
????Putout plugin adds ability to find and remove unused for-of variables. Merged with @putout/plugin-for-of.
npm i @putout/plugin-remove-unused-for-of-variables -D
{
"rules": {
"remove-unused-for-of-variables": "on"
}
}
for (const {a, b} of c) {
console.log(a);
}
for (const {a} of c) {
console.log(a);
}
MIT
Copyright 2013 - present © cnpmjs.org | Home |