{"_id":"@putout/plugin-convert-reduce-to-for-of","_rev":"4159132","name":"@putout/plugin-convert-reduce-to-for-of","description":"🐊Putout plugin adds ability to convert '.reduce()' to 'for...of'","dist-tags":{"latest":"1.4.1"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"time":{"modified":"2026-03-01T20:34:11.000Z","created":"2022-05-01T19:30:04.995Z","1.4.1":"2023-03-11T21:11:30.668Z","1.4.0":"2022-07-12T19:37:32.704Z","1.3.0":"2022-05-11T12:28:58.888Z","1.2.0":"2022-05-05T09:49:03.026Z","1.1.3":"2022-05-04T10:09:18.133Z","1.1.2":"2022-05-04T09:58:39.719Z","1.1.1":"2022-05-04T09:42:48.914Z","1.1.0":"2022-05-04T09:27:12.730Z","1.0.1":"2022-05-01T19:35:32.515Z","1.0.0":"2022-05-01T19:30:04.995Z"},"users":{},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"versions":{"1.4.1":{"name":"@putout/plugin-convert-reduce-to-for-of","version":"1.4.1","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to convert '.reduce()' to 'for...of'","homepage":"https://github.com/coderaiser/putout/tree/v28.19.2/packages/plugin-convert-reduce-to-for-of#readme","main":"lib/convert-reduce-to-for-of.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"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","putout-plugin-convert","plugin","convert","reduce","for-of"],"devDependencies":{"@putout/plugin-remove-nested-blocks":"*","@putout/test":"^6.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-n":"^15.2.4","eslint-plugin-putout":"^16.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"6bbff109c4ce2bbdddad0500f27a762477aa60da","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-reduce-to-for-of@1.4.1","_nodeVersion":"18.14.2","_npmVersion":"9.1.3","dist":{"shasum":"c0b8c2aa22a2112f00ddf01cbdb9dd5a2c4e936a","size":2884,"noattachment":false,"key":"/@putout/plugin-convert-reduce-to-for-of/-/@putout/plugin-convert-reduce-to-for-of-1.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-convert-reduce-to-for-of/download/@putout/plugin-convert-reduce-to-for-of-1.4.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","tmp":"tmp/plugin-convert-reduce-to-for-of_1.4.1_1678569090518_0.6976096908345069"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-11T21:11:30.668Z","publish_time":1678569090668,"_cnpm_publish_time":1678569090668},"1.4.0":{"name":"@putout/plugin-convert-reduce-to-for-of","version":"1.4.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to convert '.reduce()' to 'for...of'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-reduce-to-for-of#readme","main":"lib/convert-reduce-to-for-of.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"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","putout-plugin-convert","plugin","convert","reduce","for-of"],"devDependencies":{"@putout/plugin-remove-nested-blocks":"*","@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^15.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"453ae264e44f371a8acc2616027649219af77037","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-reduce-to-for-of@1.4.0","_nodeVersion":"18.4.0","_npmVersion":"8.3.0","dist":{"shasum":"a2a21e919a85c0154a1b4e34abce3076a5480c21","size":2846,"noattachment":false,"key":"/@putout/plugin-convert-reduce-to-for-of/-/@putout/plugin-convert-reduce-to-for-of-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-convert-reduce-to-for-of/download/@putout/plugin-convert-reduce-to-for-of-1.4.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-convert-reduce-to-for-of_1.4.0_1657654652522_0.10618925648272715"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-12T19:38:59.992Z","publish_time":1657654652704,"_cnpm_publish_time":1657654652704},"1.3.0":{"name":"@putout/plugin-convert-reduce-to-for-of","version":"1.3.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to convert '.reduce()' to 'for...of'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-reduce-to-for-of#readme","main":"lib/convert-reduce-to-for-of.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"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","putout-plugin-convert","plugin","convert","reduce","for-of"],"devDependencies":{"@putout/plugin-remove-nested-blocks":"*","@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^15.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"e07a4b7c7dd2031e2c1aad4b93ee272d542f5177","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-reduce-to-for-of@1.3.0","_nodeVersion":"16.14.2","_npmVersion":"8.3.0","dist":{"shasum":"32113b0ffb9566dbe7b36da32c9541c00c7045a5","size":2840,"noattachment":false,"key":"/@putout/plugin-convert-reduce-to-for-of/-/@putout/plugin-convert-reduce-to-for-of-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-convert-reduce-to-for-of/download/@putout/plugin-convert-reduce-to-for-of-1.3.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-convert-reduce-to-for-of_1.3.0_1652272138730_0.5932198949803453"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-11T14:18:52.768Z","publish_time":1652272138888,"_cnpm_publish_time":1652272138888},"1.2.0":{"name":"@putout/plugin-convert-reduce-to-for-of","version":"1.2.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to convert '.reduce()' to 'for...of'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-reduce-to-for-of#readme","main":"lib/convert-reduce-to-for-of.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"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","putout-plugin-convert","plugin","convert","reduce","for-of"],"devDependencies":{"@putout/plugin-remove-nested-blocks":"*","@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^15.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"ea3ecffeceeb068c90a2c83ae5d5d1451d1bb4ee","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-reduce-to-for-of@1.2.0","_nodeVersion":"18.0.0","_npmVersion":"8.3.0","dist":{"shasum":"fb077cdf9012e7a8ecf3d2af458a3492cff222c1","size":2827,"noattachment":false,"key":"/@putout/plugin-convert-reduce-to-for-of/-/@putout/plugin-convert-reduce-to-for-of-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-convert-reduce-to-for-of/download/@putout/plugin-convert-reduce-to-for-of-1.2.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-convert-reduce-to-for-of_1.2.0_1651744142835_0.743160054954314"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-05T10:51:08.431Z","publish_time":1651744143026,"_cnpm_publish_time":1651744143026},"1.1.3":{"name":"@putout/plugin-convert-reduce-to-for-of","version":"1.1.3","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to convert '.reduce()' to 'for...of'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-reduce-to-for-of#readme","main":"lib/convert-reduce-to-for-of.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"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","putout-plugin-convert","plugin","convert","reduce","for-of"],"devDependencies":{"@putout/plugin-remove-nested-blocks":"*","@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^15.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"ba9975c8ee0507735614dd158970e85a3850e5d9","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-reduce-to-for-of@1.1.3","_nodeVersion":"18.0.0","_npmVersion":"8.3.0","dist":{"shasum":"8a9f8b5f420a0d73b0dccd234539107776fdeee5","size":2811,"noattachment":false,"key":"/@putout/plugin-convert-reduce-to-for-of/-/@putout/plugin-convert-reduce-to-for-of-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-convert-reduce-to-for-of/download/@putout/plugin-convert-reduce-to-for-of-1.1.3.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-convert-reduce-to-for-of_1.1.3_1651658958004_0.30673151550893896"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-04T10:09:26.781Z","publish_time":1651658958133,"_cnpm_publish_time":1651658958133},"1.1.2":{"name":"@putout/plugin-convert-reduce-to-for-of","version":"1.1.2","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to convert '.reduce()' to 'for...of'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-reduce-to-for-of#readme","main":"lib/convert-reduce-to-for-of.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"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","putout-plugin-convert","plugin","convert","reduce","for-of"],"devDependencies":{"@putout/plugin-remove-nested-blocks":"*","@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^15.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"0b6f51fc20e16f6711092766180466d5cd3e8a92","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-reduce-to-for-of@1.1.2","_nodeVersion":"18.0.0","_npmVersion":"8.3.0","dist":{"shasum":"3cb79a223bad018cfd80bb8a0decb7c7b89fbf78","size":2817,"noattachment":false,"key":"/@putout/plugin-convert-reduce-to-for-of/-/@putout/plugin-convert-reduce-to-for-of-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-convert-reduce-to-for-of/download/@putout/plugin-convert-reduce-to-for-of-1.1.2.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-convert-reduce-to-for-of_1.1.2_1651658319556_0.9925100225074897"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-04T09:59:26.538Z","publish_time":1651658319719,"_cnpm_publish_time":1651658319719},"1.1.1":{"name":"@putout/plugin-convert-reduce-to-for-of","version":"1.1.1","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to convert '.reduce()' to 'for...of'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-reduce-to-for-of#readme","main":"lib/convert-reduce-to-for-of.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"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","putout-plugin-convert","plugin","convert","reduce","for-of"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^15.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"2840856486c9545ee58357b28e107f9647555703","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-reduce-to-for-of@1.1.1","_nodeVersion":"18.0.0","_npmVersion":"8.3.0","dist":{"shasum":"001e54751db7b3ce71ccd13e1a6d5e752b3c73eb","size":2788,"noattachment":false,"key":"/@putout/plugin-convert-reduce-to-for-of/-/@putout/plugin-convert-reduce-to-for-of-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-convert-reduce-to-for-of/download/@putout/plugin-convert-reduce-to-for-of-1.1.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","tmp":"tmp/plugin-convert-reduce-to-for-of_1.1.1_1651657368753_0.04323094163875241"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-04T09:47:05.195Z","publish_time":1651657368914,"_cnpm_publish_time":1651657368914},"1.1.0":{"name":"@putout/plugin-convert-reduce-to-for-of","version":"1.1.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to convert '.reduce()' to 'for...of'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-reduce-to-for-of#readme","main":"lib/convert-reduce-to-for-of.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"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","putout-plugin-convert","plugin","convert","reduce","for-of"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^15.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"b42fd535f7ec660439103c1ccfb31c8cd741e4f1","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-reduce-to-for-of@1.1.0","_nodeVersion":"18.0.0","_npmVersion":"8.3.0","dist":{"shasum":"759dc77710c4221214773a6d2690bb00f9d1c4a4","size":2791,"noattachment":false,"key":"/@putout/plugin-convert-reduce-to-for-of/-/@putout/plugin-convert-reduce-to-for-of-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-convert-reduce-to-for-of/download/@putout/plugin-convert-reduce-to-for-of-1.1.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-convert-reduce-to-for-of_1.1.0_1651656432565_0.01570826729958985"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-04T09:37:04.644Z","publish_time":1651656432730,"_cnpm_publish_time":1651656432730},"1.0.1":{"name":"@putout/plugin-convert-reduce-to-for-of","version":"1.0.1","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to convert '.reduce()' to 'for...of'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-reduce-to-for-of#readme","main":"lib/convert-reduce-to-for-of.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"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","putout-plugin-convert","plugin","convert","reduce","for-of"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^15.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"087a9ffe4dbfec93ea97cfa96c1c9cc1190504e3","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-reduce-to-for-of@1.0.1","_nodeVersion":"18.0.0","_npmVersion":"8.3.0","dist":{"shasum":"162ff512a75236a36fc8beab19bd7837592c84f4","size":2566,"noattachment":false,"key":"/@putout/plugin-convert-reduce-to-for-of/-/@putout/plugin-convert-reduce-to-for-of-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-convert-reduce-to-for-of/download/@putout/plugin-convert-reduce-to-for-of-1.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","tmp":"tmp/plugin-convert-reduce-to-for-of_1.0.1_1651433732327_0.8911474655177247"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-01T19:35:37.956Z","publish_time":1651433732515,"_cnpm_publish_time":1651433732515},"1.0.0":{"name":"@putout/plugin-convert-reduce-to-for-of","version":"1.0.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to convert '.reduce()' to 'for...of'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-reduce-to-for-of#readme","main":"lib/convert-reduce-to-for-of.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"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","putout-plugin-convert","plugin","convert","reduce","for-of"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^15.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"584d6f18e39ed4c26831a1477e7ca519fc517bf4","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-reduce-to-for-of@1.0.0","_nodeVersion":"18.0.0","_npmVersion":"8.3.0","dist":{"shasum":"130cb5cd32dd6876335d351bf36d432657a8bc90","size":2462,"noattachment":false,"key":"/@putout/plugin-convert-reduce-to-for-of/-/@putout/plugin-convert-reduce-to-for-of-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-convert-reduce-to-for-of/download/@putout/plugin-convert-reduce-to-for-of-1.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-convert-reduce-to-for-of_1.0.0_1651433404816_0.7299256133858532"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-01T19:30:09.689Z","publish_time":1651433404995,"_cnpm_publish_time":1651433404995}},"readme":"# @putout/plugin-convert-reduce-to-for-of [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-convert-reduce-to-for-of.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-convert-reduce-to-for-of \"npm\"\n\n> - The [`reduce()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce) method executes a user-supplied **reducer** callback function on each element of the array, in order, passing in the return value from the calculation on the preceding element. The final result of running the reducer across all elements of the array is a single value.\n>\n> - The [`for...of`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of) statement creates a loop which invokes a custom iteration hook with statements to be executed for the value of each element of an array.\n>\n> (c) MDN\n\n????[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to convert `.reduce()` to `for...of` loop. Merged to [`@putout/plugin-for-of`](https://www.npmjs.com/package/@putout/plugin-for-of).\nYou should always look at second argument of a **reducer** since it changes logic drastically and should read back and forth a couple times to understand what is going on.\n\n> Recursive functions like `.reduce()` can be powerful but sometimes difficult to understand, especially for less experienced **JavaScript** developers. If code becomes clearer when using other array methods, developers must weigh the readability tradeoff against the other benefits of using `.reduce()`. In cases where `.reduce()` is the best choice, documentation and semantic variable naming can help mitigate readability drawbacks.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce#when_to_not_use_reduce)\n\nCheck it out in ????[**Putout Editor**](https://putout.cloudcmd.io/#/gist/107751499a4bbdd83b9181444d8bdbbd/8d3b646a3df0025d564e2bb141cc7f6a6bb1b3a5).\n\n## Install\n\n```\nnpm i @putout/plugin-convert-reduce-to-for-of -D\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"convert-reduce-to-for-of\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nconst result = list.reduce((a, b) => a + b, 1);\n```\n\n## ✅ Example of correct code\n\n```js\nlet sum = 1;\n\nfor (const a of list) {\n    sum += a;\n}\n```\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/coderaiser/putout/tree/v28.19.2/packages/plugin-convert-reduce-to-for-of#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"license":"MIT"}