{"_id":"@putout/plugin-remove-useless-array-entries","_rev":"4-68ef9d49da44126734bc62a68b9f306d","name":"@putout/plugin-remove-useless-array-entries","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"@putout/plugin-remove-useless-array-entries","version":"1.0.0","keywords":["putout","putout-plugin","plugin","array-entries","useless"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-remove-useless-array-entries@1.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-array-entries#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"270c711cc3678ea4f5bd33496397bf3e61a1d535","tarball":"https://registry.npmjs.org/@putout/plugin-remove-useless-array-entries/-/plugin-remove-useless-array-entries-1.0.0.tgz","fileCount":4,"integrity":"sha512-ArLWIUXH1ajRPRe/6Pv4MhW3HAFoet4dy1fMlYVa+2i2ydjVYsKnwdJU70cI9B2Mo25JQXUY5yskkSaRQx339g==","signatures":[{"sig":"MEUCIQDZ2Dz3AS5wdqhG766AIjq0+ujtDJzaycvHW3uUqT8qeAIgQdNXfsjkcYvj5GM1L7ESpa2YL1N4nS3WNhUTkA2DBBU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3521,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhxFbUCRA9TVsSAnZWagAA/UYQAJMIQxDAYUhxJxeUn4QD\nGauB85GTW1q3zEiQLtVRMamOUkXEj8oWSgkCEZxNBYkfogtLaa15EK1aPvio\n7RMNbS35bC1vNSc0dPENkXNKLKd3WE32XJYq2nHTyB4S5fE/3t0Mq8kVMGoZ\n5Cwt+rLuZ2Rt6vHYhDKXPkdAU+wZK2A+D7QV4cszgRUnfl2SKlCS+vb/sAj6\nR62KRthVBs5TWmmBu0QrzItAZ358mx7fA3qsz1ypXtoh08xQnbdTKFgOJ6qA\n9uOqLflelHd711NYypliU1ueGF3H70dA6YvnS0B6n34xxTYKjvnVi/DLHVOC\n48nfmCbqW86q/NdwMDE+Xs2Cvty1Cln0mtSTFxEzqw6yEZT36aqxPkI67fq1\nek19yCA+w6/ZHEQWIQpc0cTDYm+8g+/V8iKmXcYu0yiBwp3WXJAsMEsOkK5X\nn0/cEGMhsp47Md+oYojlCL65ji5YB5iYEgAygo4ZV9AcAWVTNlpInP/lYrc4\nBkJrCN7XxGpCdTEau3wCjn2/VZp+RXuGOGWGUPVAPihyFyMq6RJQf2TOh3K5\nl3AOKj80nf4dWYT3VdFKIxTVq9uzbbPQMFx5CMhts6YIC/RGW+tvUkiWE1Yc\n5wbVP8h8/pjbYpF2NgUfcZxYz93I5cpf1zSwMyIbmcTwlnc+u4St0EzRNscN\nETOW\r\n=u+hh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/remove-useless-array-entries.js","engines":{"node":">=14"},"gitHead":"cea2a203f5cf18f4da74edbd02f2e2572a9eb1b3","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test","publishOnly":"madrun publishOnly"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"8.3.0","description":"putout plugin adds ability to remove useless array.entries()","directories":{},"_nodeVersion":"16.13.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.5.0","eslint":"^8.0.1","madrun":"^8.0.1","@putout/test":"^4.0.0","eslint-plugin-node":"^11.0.0"},"peerDependencies":{"putout":">=23"},"_npmOperationalInternal":{"tmp":"tmp/plugin-remove-useless-array-entries_1.0.0_1640257236334_0.38083481937389085","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@putout/plugin-remove-useless-array-entries","version":"2.0.0","keywords":["putout","putout-plugin","plugin","array-entries","useless"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-remove-useless-array-entries@2.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-array-entries#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"5e0bb530fff848ccfd6c0aa45a7b470e4270d415","tarball":"https://registry.npmjs.org/@putout/plugin-remove-useless-array-entries/-/plugin-remove-useless-array-entries-2.0.0.tgz","fileCount":4,"integrity":"sha512-boymOfT5VCcVX3YgtTtmSvX+7khNj3LL0Hj1p+z2GR5+osNhxK2SyEfGDeni4pM8gPb/Nr0iNd3LJNwyHlj0GA==","signatures":[{"sig":"MEUCIGhhzxX6KpjLe0dhwa+oY8dqGR4IZDmtox9qknnHAfYYAiEAnQLubMa1pqQHvOd4YIJRX7pH8ZAiT9lTWuVF4GxkqKc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3905},"main":"lib/remove-useless-array-entries.js","type":"module","engines":{"node":">=20"},"gitHead":"ae9196a6f554be77d61c8af399f660950861b21e","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test","publishOnly":"madrun publishOnly"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"11.1.0","description":"🐊Putout plugin adds ability to remove useless array.entries()","directories":{},"_nodeVersion":"22.15.0","dependencies":{"eslint-plugin-putout":"^26.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^9.0.0","madrun":"^11.0.0","@putout/test":"^13.0.0","eslint-plugin-n":"^17.0.0","@putout/eslint-flat":"^3.0.0"},"peerDependencies":{"putout":">=40"},"_npmOperationalInternal":{"tmp":"tmp/plugin-remove-useless-array-entries_2.0.0_1747562122545_0.38488549100436864","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"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":"https://registry.npmjs.org/@putout/plugin-remove-useless-array-entries/-/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"}]},"_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}},"time":{"created":"2021-12-23T11:00:36.264Z","modified":"2025-12-30T22:19:24.891Z","1.0.0":"2021-12-23T11:00:36.482Z","2.0.0":"2025-05-18T09:55:22.720Z","2.0.1":"2025-12-30T22:19:24.329Z"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"license":"MIT","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-array-entries#readme","keywords":["putout","putout-plugin","plugin","array-entries","useless"],"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"description":"🐊Putout plugin adds ability to remove useless array.entries()","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"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","readmeFilename":"README.md"}