{"id":19042081,"url":"https://github.com/writetome51/array-get-and-remove-by-index","last_synced_at":"2026-06-18T06:31:17.648Z","repository":{"id":122062339,"uuid":"155666206","full_name":"writetome51/array-get-and-remove-by-index","owner":"writetome51","description":"Removes and returns item from array, accessed by its index","archived":false,"fork":false,"pushed_at":"2021-05-02T15:34:38.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-23T16:24:55.760Z","etag":null,"topics":["array-manipulations","get-item"],"latest_commit_sha":null,"homepage":null,"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/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":"2018-11-01T05:30:04.000Z","updated_at":"2021-05-02T15:34:40.000Z","dependencies_parsed_at":"2023-07-22T18:01:11.709Z","dependency_job_id":null,"html_url":"https://github.com/writetome51/array-get-and-remove-by-index","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/writetome51/array-get-and-remove-by-index","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Farray-get-and-remove-by-index","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Farray-get-and-remove-by-index/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Farray-get-and-remove-by-index/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Farray-get-and-remove-by-index/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/writetome51","download_url":"https://codeload.github.com/writetome51/array-get-and-remove-by-index/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Farray-get-and-remove-by-index/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34479552,"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-06-18T02:00:06.871Z","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":["array-manipulations","get-item"],"created_at":"2024-11-08T22:34:35.080Z","updated_at":"2026-06-18T06:31:17.602Z","avatar_url":"https://github.com/writetome51.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# getAndRemoveByIndex\\\u003cT\\\u003e(\u003cbr\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;index: number,\u003cbr\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;array: T[]\u003cbr\u003e): T\n\nRemoves and returns 1 item (accessed by `index`) from `array`.  \nThe `index` can be negative or positive.\n\n## Examples\n```js\nlet arr = [10,20,30,40,50];\n\ngetAndRemoveByIndex(2, arr);  \n// --\u003e 30\n// arr is now [10,20,40,50]\n\narr = [10,20,30,40,50];\ngetAndRemoveByIndex(-2, arr);  \n// --\u003e 40   \n// arr is now [10,20,30,50]\n```\n\n## Installation\n`npm i  @writetome51/array-get-and-remove-by-index`\n\n\n## Loading\n```js\nimport {getAndRemoveByIndex} from '@writetome51/array-get-and-remove-by-index';\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwritetome51%2Farray-get-and-remove-by-index","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwritetome51%2Farray-get-and-remove-by-index","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwritetome51%2Farray-get-and-remove-by-index/lists"}