{"id":15636580,"url":"https://github.com/mafintosh/unordered-array-remove","last_synced_at":"2025-07-14T02:32:53.038Z","repository":{"id":45149156,"uuid":"48804294","full_name":"mafintosh/unordered-array-remove","owner":"mafintosh","description":"Efficiently remove an element from an unordered array without doing a splice","archived":false,"fork":false,"pushed_at":"2022-01-05T04:18:54.000Z","size":4,"stargazers_count":118,"open_issues_count":2,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-26T22:19:03.871Z","etag":null,"topics":[],"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/mafintosh.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":"2015-12-30T14:31:00.000Z","updated_at":"2024-10-27T20:31:22.000Z","dependencies_parsed_at":"2022-09-13T19:31:57.535Z","dependency_job_id":null,"html_url":"https://github.com/mafintosh/unordered-array-remove","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mafintosh/unordered-array-remove","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafintosh%2Funordered-array-remove","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafintosh%2Funordered-array-remove/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafintosh%2Funordered-array-remove/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafintosh%2Funordered-array-remove/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mafintosh","download_url":"https://codeload.github.com/mafintosh/unordered-array-remove/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafintosh%2Funordered-array-remove/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265233753,"owners_count":23731825,"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":[],"created_at":"2024-10-03T11:05:14.152Z","updated_at":"2025-07-14T02:32:52.986Z","avatar_url":"https://github.com/mafintosh.png","language":"JavaScript","readme":"# unordered-array-remove\n\nEfficiently remove an element from an unordered array without doing a splice\n\n```\nnpm install unordered-array-remove\n```\n\n[![build status](http://img.shields.io/travis/mafintosh/unordered-array-remove.svg?style=flat)](http://travis-ci.org/mafintosh/unordered-array-remove)\n\n## Usage\n\n``` js\nvar remove = require('unordered-array-remove')\n\nvar list = ['a', 'b', 'c', 'd', 'e']\nremove(list, 2) // remove 'c'\nconsole.log(list) // returns ['a', 'b', 'e', 'd'] (no 'c')\n```\n\nThis works by popping the last element (which is fast because it doesn't need shift all array elements)\nand overwriting the removed index with this element.\n\n## License\n\nMIT\n","funding_links":[],"categories":["Modules","模块"],"sub_categories":["Array","数组"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmafintosh%2Funordered-array-remove","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmafintosh%2Funordered-array-remove","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmafintosh%2Funordered-array-remove/lists"}