{"name":"@putout/plugin-remove-useless-array-entries","version":"2.0.1","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to remove useless array.entries()","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-array-entries#readme","main":"lib/remove-useless-array-entries.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"publishOnly":"madrun publishOnly","test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","array-entries","useless"],"devDependencies":{"@putout/eslint-flat":"^3.0.0","@putout/test":"^14.0.0","c8":"^10.0.0","eslint":"^10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","madrun":"^11.0.0"},"peerDependencies":{"putout":">=40"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-remove-useless-array-entries@2.0.1","gitHead":"74acc7df928f8399e455b3f23e6a26943db52738","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.2.1","_npmVersion":"11.4.2","dist":{"integrity":"sha512-12ZmnT9fA91oXO6LoivlljorE+dx5c5SGa0juTvQR1kDa4fw6yBGPE6SABLkTBIiOd0v7St5I0yFC1NzCL/f+A==","shasum":"8a97baf30a8f07e0c9981528f2c784559da18c7a","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-useless-array-entries/download/@putout/plugin-remove-useless-array-entries-2.0.1.tgz","fileCount":4,"unpackedSize":3873,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDYSrJAe/+cBUvdsX9oywUPrn+t9XzvKJMCoZZ+8e+ziwIhAPCoij1ctxoviVDS4LONMOm8Ed2AgHDbXchxtLU/YyZm"}],"size":1893,"noattachment":false,"key":"/@putout/plugin-remove-useless-array-entries/-/@putout/plugin-remove-useless-array-entries-2.0.1.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-remove-useless-array-entries_2.0.1_1767133164179_0.9753706519265086"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-remove-useless-array-entries [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-useless-array-entries.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-useless-array-entries \"npm\"\n\n> The `entries()` method returns a new Array Iterator object that contains the key/value pairs for each index in the array.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/entries)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to remove useless [`array.entries()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/entries).\n\n## Install\n\n```\nnpm i @putout/plugin-remove-useless-array-entries\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"remove-useless-array-entries\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nfor (const [, element] of array.entries()) {\n    console.log(element);\n}\n```\n\n## ✅ Example of correct code\n\n```js\nfor (const element of array) {\n    console.log(element);\n}\n```\n\n## License\n\nMIT\n","publish_time":1767133164329,"_cnpm_publish_time":1767133164329,"dist-tags":{"latest":"2.0.1"}}