{"id":19041921,"url":"https://github.com/writetome51/array-remove-all-before","last_synced_at":"2026-04-13T08:31:21.935Z","repository":{"id":122062354,"uuid":"173232632","full_name":"writetome51/array-remove-all-before","owner":"writetome51","description":"2 functions that remove all items that come before a certain value in the array","archived":false,"fork":false,"pushed_at":"2019-03-01T04:04:55.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T08:37:43.356Z","etag":null,"topics":["array-manipulations","items","javascript","remove","remove-elements","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/writetome51.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-01T04:04:00.000Z","updated_at":"2019-03-01T04:06:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"bdb67aef-dc9f-44ab-8661-e8ea8b52358f","html_url":"https://github.com/writetome51/array-remove-all-before","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"7bdb19e6d3430085c2975229fd99dfa0223a99de"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/writetome51/array-remove-all-before","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Farray-remove-all-before","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Farray-remove-all-before/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Farray-remove-all-before/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Farray-remove-all-before/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/writetome51","download_url":"https://codeload.github.com/writetome51/array-remove-all-before/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Farray-remove-all-before/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31746101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T06:26:45.479Z","status":"ssl_error","status_checked_at":"2026-04-13T06:26:44.645Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["array-manipulations","items","javascript","remove","remove-elements","typescript"],"created_at":"2024-11-08T22:33:22.112Z","updated_at":"2026-04-13T08:31:21.919Z","avatar_url":"https://github.com/writetome51.png","language":"TypeScript","readme":"# removeAllBeforeFirst(value, array):void\n\nRemoves everything before first instance of `value` in `array`.\n\n# removeAllBeforeLast(value, array): void\n\nRemoves everything before last instance of `value` in `array`.\n\nFor both, the parameter `value` cannot be an object.  It can be an array.\n\n\n## Examples\n```\nlet arr = [5, 10, 15, [20,22], 10, 50, [20,22], 60];  \nremoveAllBeforeFirst([20,22], arr);  \n// arr is now [[20,22],10,50,[20,22],60]  \n\nlet arr = [5, 10, 15, [20,22], 10, 50, [20,22], 60]; \nremoveAllBeforeLast([20,22], arr);  \n// arr is now [[20,22], 60]  \n```\n\n## Installation\n`npm i  @writetome51/array-remove-all-before`\n\n\n## Loading\n```\n// if using TypeScript:\nimport {removeAllBeforeFirst, removeAllBeforeLast}  from '@writetome51/array-remove-all-before';\n// if using ES5 JavaScript:\nvar removeAllBeforeFirst = \n\trequire('@writetome51/array-remove-all-before').removeAllBeforeFirst;\nvar removeAllBeforeLast = \n\trequire('@writetome51/array-remove-all-before').removeAllBeforeLast;\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwritetome51%2Farray-remove-all-before","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwritetome51%2Farray-remove-all-before","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwritetome51%2Farray-remove-all-before/lists"}