{"id":20393043,"url":"https://github.com/aichbauer/bearray","last_synced_at":"2026-05-28T13:06:52.026Z","repository":{"id":66098549,"uuid":"85863739","full_name":"aichbauer/bearray","owner":"aichbauer","description":"A fun package with chainable higher order functions","archived":false,"fork":false,"pushed_at":"2017-06-13T07:05:23.000Z","size":55,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-24T23:33:37.177Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aichbauer.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,"governance":null}},"created_at":"2017-03-22T18:42:03.000Z","updated_at":"2021-12-03T09:33:26.000Z","dependencies_parsed_at":"2023-03-10T23:37:00.288Z","dependency_job_id":null,"html_url":"https://github.com/aichbauer/bearray","commit_stats":null,"previous_names":["rudolfsonjunior/bearray"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/aichbauer/bearray","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aichbauer%2Fbearray","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aichbauer%2Fbearray/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aichbauer%2Fbearray/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aichbauer%2Fbearray/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aichbauer","download_url":"https://codeload.github.com/aichbauer/bearray/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aichbauer%2Fbearray/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33609343,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"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-15T03:47:07.739Z","updated_at":"2026-05-28T13:06:52.010Z","avatar_url":"https://github.com/aichbauer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bearray\n\n[![Build Status](https://travis-ci.org/aichbauer/bearray.svg?branch=master)](https://travis-ci.org/aichbauer/bearray)\n[![Coverage Status](https://coveralls.io/repos/github/aichbauer/bearray/badge.svg?branch=master)](https://coveralls.io/github/aichbauer/bearray?branch=master)\n\n\u003e ʕ·ᴥ·ʔ says: \"Hey there!\"\n\n## Installation\n\n```sh\n$ npm i bearray --save\n```\nor\n```sh\n$ yarn add bearray\n```\n\n\n## Methods\n- [filter](#filter)\n- [map](#map)\n- [reduce](#reduce)\n- [getValue](#getValue)\n\n### filter\n\u003e Ƹ̵̡Ӝ̵̨̄Ʒ\n\nFilter an array.\n\n```js\nimport { ʕ·ᴥ·ʔ } from 'bearray';\n\nconst ᕕ·ᐛ·ᕗ = ʕ·ᴥ·ʔ([1, 2, 3, 4]).Ƹ̵̡Ӝ̵̨̄Ʒ((value, index) =\u003e {\n  return value % 2 === 0;\n});\n\nᕕ·ᐛ·ᕗ.ʕᵔᴥᵔʔ() // [2, 4]\n```\n\n### map\n\u003e ʕʘ̅͜ʘ̅ʔ\n\nMap over an array.\n\n```js\nimport { ʕ·ᴥ·ʔ } from 'bearray';\n\nconst ᕕ·ᐛ·ᕗ = ʕ·ᴥ·ʔ([1, 2, 3, 4]).ʕʘ̅͜ʘ̅ʔ((value, index) =\u003e {\n  return value + value;\n});\n\nᕕ·ᐛ·ᕗ.ʕᵔᴥᵔʔ() // [2, 4, 6, 8]\n```\n\n### reduce\n\u003e ಠ_ಠ\n\nReduce an array.\n\n```js\nimport { ʕ·ᴥ·ʔ } from 'bearray';\n\nconst ᕕ·ᐛ·ᕗ = ʕ·ᴥ·ʔ([1, 2, 3, 4]).ಠ_ಠ((sum, current) =\u003e {\n  return sum + current;\n});\n\n\nᕕ·ᐛ·ᕗ.ʕᵔᴥᵔʔ() // [10]\n```\n\n### getValue\n\u003e ʕᵔᴥᵔʔ\n\nGet the value at the end of some chained operations (see other functions as well).\n\n```js\nimport { ʕ·ᴥ·ʔ } from 'bearray';\n\nconst ᕕ·ᐛ·ᕗ = ʕ·ᴥ·ʔ([1, 2, 3, 4]);\n\nᕕ·ᐛ·ᕗ.ʕᵔᴥᵔʔ() // [1, 2, 3, 4]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faichbauer%2Fbearray","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faichbauer%2Fbearray","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faichbauer%2Fbearray/lists"}