{"id":21004823,"url":"https://github.com/halfzebra/array-flatten","last_synced_at":"2026-04-27T06:35:29.222Z","repository":{"id":73687533,"uuid":"60210223","full_name":"halfzebra/array-flatten","owner":"halfzebra","description":"Array flatten implementations in JavaScript","archived":false,"fork":false,"pushed_at":"2016-08-15T11:28:46.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-01T00:27:13.356Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/halfzebra.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-01T20:56:37.000Z","updated_at":"2025-02-20T23:33:11.000Z","dependencies_parsed_at":"2023-02-24T01:15:23.362Z","dependency_job_id":null,"html_url":"https://github.com/halfzebra/array-flatten","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/halfzebra/array-flatten","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halfzebra%2Farray-flatten","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halfzebra%2Farray-flatten/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halfzebra%2Farray-flatten/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halfzebra%2Farray-flatten/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/halfzebra","download_url":"https://codeload.github.com/halfzebra/array-flatten/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halfzebra%2Farray-flatten/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32326112,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-19T08:38:06.769Z","updated_at":"2026-04-27T06:35:24.212Z","avatar_url":"https://github.com/halfzebra.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Array flatten implementations in JavaScript\n\n[![Build Status](https://travis-ci.org/halfzebra/array-flatten.svg?branch=master)](https://travis-ci.org/halfzebra/array-flatten)\n\nThis repository is dedicated to different implementations\nof array flatten in ES2015.\n\nThe motivation is to explore the differences between imperative\nant functional ways to implement array flattening algorithms.\n\nCurrently you might check out the following implementations:\n- [for] [for] loop\n- [Array.prototype.forEach] [forEach]\n- [Array.prototype.map] [map]\n- [Array.prototype.reduce] [reduce]\n\n#### To run tests:\n\n```sh\n$ npm i\n$ npm test\n```\n\n#### Checking test coverage:\n\nIt is possible to check test covarega with [isparta](https://github.com/douglasduteil/isparta)\n\n```sh\n$ npm run coverage\n```\n\n#### Todo:\n- while loop\n\n[for]: \u003chttps://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Statements/for\u003e\n[forEach]: \u003chttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach\u003e\n[map]: \u003chttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map\u003e\n[reduce]: \u003chttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalfzebra%2Farray-flatten","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhalfzebra%2Farray-flatten","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalfzebra%2Farray-flatten/lists"}