@putout/plugin-remove-useless-array-entries
v2.0.0
Published
šPutout plugin adds ability to remove useless array.entries()
Downloads
53,116
Maintainers
Readme
@putout/plugin-remove-useless-array-entries 
The
entries()method returns a new Array Iterator object that contains the key/value pairs for each index in the array.(c) MDN
šPutout plugin adds ability to remove useless array.entries().
Install
npm i @putout/plugin-remove-useless-array-entriesRule
{
"rules": {
"remove-useless-array-entries": "on"
}
}ā Example of incorrect code
for (const [, element] of array.entries()) {
console.log(element);
}ā Example of correct code
for (const element of array) {
console.log(element);
}License
MIT
