{"id":22433559,"url":"https://github.com/gavinning/object-extends","last_synced_at":"2025-03-27T07:45:36.348Z","repository":{"id":57312561,"uuid":"89898531","full_name":"gavinning/object-extends","owner":"gavinning","description":"增强原生对象","archived":false,"fork":false,"pushed_at":"2018-05-08T04:57:18.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T12:23:39.888Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gavinning.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-01T04:58:37.000Z","updated_at":"2018-05-08T04:57:20.000Z","dependencies_parsed_at":"2022-09-26T20:41:28.495Z","dependency_job_id":null,"html_url":"https://github.com/gavinning/object-extends","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Fobject-extends","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Fobject-extends/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Fobject-extends/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Fobject-extends/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gavinning","download_url":"https://codeload.github.com/gavinning/object-extends/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245806389,"owners_count":20675296,"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-12-05T22:15:17.757Z","updated_at":"2025-03-27T07:45:36.321Z","avatar_url":"https://github.com/gavinning.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Object-extends\n---\n\n### Install\n```sh\nnpm i object-extends --save\n```\n\n### Usage\n```js\nrequire('object-extends')\n// Or\nimport 'object-extends'\n```\n\n### Extends For Array\n```js\nArray.prototype.asyncMap\nArray.prototype.asyncEach\nArray.prototype.asyncFind\nArray.prototype.asyncSome\nArray.prototype.asyncEvery\n\n// 数组排重\nArray.prototype.unique\n\n// 删除\nArray.prototype.remove\n\n// 相似值\nArray.prototype.near\nArray.prototype.nearIndex\n```\n\n### Example\n```js\nasync function test() {\n\tlet keys = await arr.asyncMap(async item =\u003e await item.key())\n\tconsole.log(keys)\n}\n\ntest()\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavinning%2Fobject-extends","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgavinning%2Fobject-extends","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavinning%2Fobject-extends/lists"}