{"id":19268517,"url":"https://github.com/arnaudsm/array-deluxe","last_synced_at":"2025-06-22T18:37:51.408Z","repository":{"id":61073882,"uuid":"548104197","full_name":"arnaudsm/array-deluxe","owner":"arnaudsm","description":"Superpowers for your JavaScript arrays 🦸","archived":false,"fork":false,"pushed_at":"2022-10-09T09:38:05.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-11T09:09:40.385Z","etag":null,"topics":["array","functional-programming","groupby","list","pipes"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/array-deluxe","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arnaudsm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-10-08T23:40:14.000Z","updated_at":"2022-10-09T00:58:17.000Z","dependencies_parsed_at":"2022-10-09T13:43:41.208Z","dependency_job_id":null,"html_url":"https://github.com/arnaudsm/array-deluxe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/arnaudsm/array-deluxe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnaudsm%2Farray-deluxe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnaudsm%2Farray-deluxe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnaudsm%2Farray-deluxe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnaudsm%2Farray-deluxe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arnaudsm","download_url":"https://codeload.github.com/arnaudsm/array-deluxe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnaudsm%2Farray-deluxe/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261257108,"owners_count":23131521,"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":["array","functional-programming","groupby","list","pipes"],"created_at":"2024-11-09T20:16:34.131Z","updated_at":"2025-06-22T18:37:46.394Z","avatar_url":"https://github.com/arnaudsm.png","language":"JavaScript","readme":"# Array-Deluxe 🦸‍♂️\nSuperpowers for your JavaScript arrays\n```js\nimport 'array-deluxe'\n\n[1,2,3].map(x =\u003e x+1).unique().shuffle().mean()\n```\n\n# Usage\n\n## Import\n```js\nimport 'array-deluxe'\n// OR\nrequire('array-deluxe')\n```\n\n## Number functions\n```js\nconst list = [1,1,3]\nlist.max()     // 3\nlist.min()     // 1\nlist.sum()     // 5\nlist.median()  // 1\nlist.mean()    // 2.5\nlist.unique()  // [1,3]\nlist.shuffle() // [1,3,1]\n```\n## Object functions\n```js\nconst people = [\n    {name:\"snap\",    age:21},\n    {name:\"pop\",     age:23},\n    {name:\"crackle\", age:21},\n];\npeople.select(\"name\") // [\"snap\",\"pop\",\"crackle\"]\npeople.max(\"age\")     // 23\npeople.min(\"age\")     // 21\npeople.sum(\"age\")     // 65\npeople.median(\"age\")  // 21\npeople.mean(\"age\")    // 21.6..\n```\n\n# Todo\n- Tests\n- TypeScript support\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnaudsm%2Farray-deluxe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farnaudsm%2Farray-deluxe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnaudsm%2Farray-deluxe/lists"}