{"id":22165285,"url":"https://github.com/doochik/uglify-array-plainize","last_synced_at":"2025-03-24T16:13:37.525Z","repository":{"id":8766449,"uuid":"10450719","full_name":"doochik/uglify-array-plainize","owner":"doochik","description":"UglifyJS plugin to convert modern array methods (forEach, map, filter) to plain JS for-loop","archived":false,"fork":false,"pushed_at":"2013-06-07T04:49:46.000Z","size":128,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-06T15:51:10.041Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doochik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-03T08:52:46.000Z","updated_at":"2014-01-09T21:31:19.000Z","dependencies_parsed_at":"2022-09-20T06:01:33.124Z","dependency_job_id":null,"html_url":"https://github.com/doochik/uglify-array-plainize","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doochik%2Fuglify-array-plainize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doochik%2Fuglify-array-plainize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doochik%2Fuglify-array-plainize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doochik%2Fuglify-array-plainize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doochik","download_url":"https://codeload.github.com/doochik/uglify-array-plainize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245304873,"owners_count":20593626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-02T05:14:21.324Z","updated_at":"2025-03-24T16:13:37.495Z","avatar_url":"https://github.com/doochik.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"uglify-array-plainize\n=====================\n\n[UglifyJS](https://github.com/mishoo/UglifyJS2) plugin to convert modern array methods (forEach, map, filter) to plain JS for-loop\n\nIt's just an experiment.\n\nThe main reason is that native array methods are [slower than for-loop](http://jsperf.com/for-loop-vs-foreach-vs-reduce/3). So if you need extremely fast JS code you should avoid to use it.\n\nThere are many examples in `test` path.\n\nFor example,\n```js\na.forEach(function(myValue) {\n    console.log(myValue);\n});\n```\n\nconverted to\n```js\n(function(ugAP_array_reference) {\n    for (var ugAP_iterator = 0, ugAP_array_length = ugAP_array_reference.length; ugAP_iterator \u003c ugAP_array_length; ugAP_iterator++) {\n        var myValue = ugAP_array_reference[ugAP_iterator];\n        console.log(myValue);\n    }\n})(a);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoochik%2Fuglify-array-plainize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoochik%2Fuglify-array-plainize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoochik%2Fuglify-array-plainize/lists"}