{"id":19042051,"url":"https://github.com/writetome51/array-remove-all-after","last_synced_at":"2025-10-09T13:32:18.276Z","repository":{"id":57169556,"uuid":"173229927","full_name":"writetome51/array-remove-all-after","owner":"writetome51","description":"2 functions that remove all items that come after a certain value in the array","archived":false,"fork":false,"pushed_at":"2019-03-01T03:51:37.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T13:32:01.887Z","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}},"created_at":"2019-03-01T03:40:01.000Z","updated_at":"2019-03-01T03:51:39.000Z","dependencies_parsed_at":"2022-09-14T02:10:53.587Z","dependency_job_id":null,"html_url":"https://github.com/writetome51/array-remove-all-after","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/writetome51/array-remove-all-after","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Farray-remove-all-after","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Farray-remove-all-after/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Farray-remove-all-after/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Farray-remove-all-after/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/writetome51","download_url":"https://codeload.github.com/writetome51/array-remove-all-after/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Farray-remove-all-after/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001481,"owners_count":26083102,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"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":["array-manipulations","items","javascript","remove","remove-elements","typescript"],"created_at":"2024-11-08T22:34:15.211Z","updated_at":"2025-10-09T13:32:18.260Z","avatar_url":"https://github.com/writetome51.png","language":"TypeScript","readme":"# removeAllAfterFirst(value, array): void\n\nRemoves everything after first instance of `value` in `array`.\n\n# removeAllAfterLast(value, array): void\n\nRemoves everything after last instance of `value` in `array`.\n\nFor both, `value` cannot be an object.  It can be an array.\n\n\nExamples:\n```\nlet arr = [5,10,15,20,10,50,60,70];  \nremoveAllAfterFirst(10, arr);  \n// arr is now [5,10]  \n\nlet arr = [5,10,15,20,10,50,60,70];  \nremoveAllAfterLast(10, arr);  \n// arr is now [5,10,15,20,10]  \n```\n\n## Installation\n`npm i @writetome51/array-remove-all-after`\n\n## Loading\n```\n// if using TypeScript:\nimport {removeAllAfterFirst, removeAllAfterLast} from '@writetome51/array-remove-all-after';\n// if using ES5 JavaScript:\nvar removeAllAfterFirst = \n    require('@writetome51/array-remove-all-after').removeAllAfterFirst;\nvar removeAllAfterLast = \n    require('@writetome51/array-remove-all-after').removeAllAfterLast;\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwritetome51%2Farray-remove-all-after","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwritetome51%2Farray-remove-all-after","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwritetome51%2Farray-remove-all-after/lists"}