{"id":24030520,"url":"https://github.com/callmecavs/array-intersect","last_synced_at":"2025-04-19T11:41:42.341Z","repository":{"id":57183999,"uuid":"143657635","full_name":"callmecavs/array-intersect","owner":"callmecavs","description":"Array intersection, simplified.","archived":false,"fork":false,"pushed_at":"2018-08-06T01:03:48.000Z","size":34,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-29T23:36:05.149Z","etag":null,"topics":["array","intersection"],"latest_commit_sha":null,"homepage":"","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/callmecavs.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":"2018-08-06T00:25:53.000Z","updated_at":"2023-03-08T04:59:11.000Z","dependencies_parsed_at":"2022-09-10T22:40:16.805Z","dependency_job_id":null,"html_url":"https://github.com/callmecavs/array-intersect","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callmecavs%2Farray-intersect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callmecavs%2Farray-intersect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callmecavs%2Farray-intersect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callmecavs%2Farray-intersect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/callmecavs","download_url":"https://codeload.github.com/callmecavs/array-intersect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248675389,"owners_count":21143768,"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":["array","intersection"],"created_at":"2025-01-08T17:44:36.930Z","updated_at":"2025-04-19T11:41:42.307Z","avatar_url":"https://github.com/callmecavs.png","language":"JavaScript","readme":"# array-intersect\n\n[![array-intersect on Travis](https://img.shields.io/travis/callmecavs/array-intersect.svg?style=flat-square)](https://travis-ci.org/callmecavs/array-intersect) [![array-intersect on NPM](https://img.shields.io/npm/v/array-intersect.svg?style=flat-square)](https://www.npmjs.com/package/array-intersect) [![array-intersect Downloads on NPM](https://img.shields.io/npm/dm/array-intersect.svg?style=flat-square)](https://www.npmjs.com/package/array-intersect) [![Standard JavaScript Style](https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square)](http://standardjs.com/)\n\n## Install\n\n```sh\n$ npm i array-intersect --save\n```\n\n## Use\n\nPass any number of arrays as arguments.\n\nExpects that:\n\n* Array items are unique (deduped)\n* Array items are [primitive types](https://developer.mozilla.org/en-US/docs/Glossary/Primitive)\n\n\n```javascript\nimport intersect from 'array-intersect'\n\nconst simple = intersect(\n  [1, 2, 3],\n  [2, 3, 4]\n)\n\nconst complex = intersect(\n  [0, 1, 2, 3],\n  [1, 2, 3, 4],\n  [2, 3, 4, 5]\n)\n\nconsole.log(simple)            // [2, 3]\nconsole.log(complex)           // [2, 3]\n```\n\n## Browser Support\n\nRequires support for [ES5 Array Methods](https://caniuse.com/#feat=es5).\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT). © 2018 Michael Cavalea\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcallmecavs%2Farray-intersect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcallmecavs%2Farray-intersect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcallmecavs%2Farray-intersect/lists"}