{"id":18709213,"url":"https://github.com/jojoee/object.intersect","last_synced_at":"2025-04-12T10:35:12.838Z","repository":{"id":57312923,"uuid":"116686089","full_name":"jojoee/object.intersect","owner":"jojoee","description":":tada: Return intersect object that have same key from a number of objects","archived":false,"fork":false,"pushed_at":"2019-07-17T23:39:50.000Z","size":12,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T05:51:10.154Z","etag":null,"topics":["array-manipulations","fast","intersect","intersection","key","object","property"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/object.intersect","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/jojoee.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":"2018-01-08T14:21:59.000Z","updated_at":"2021-11-08T10:16:07.000Z","dependencies_parsed_at":"2022-09-20T23:10:47.367Z","dependency_job_id":null,"html_url":"https://github.com/jojoee/object.intersect","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/jojoee%2Fobject.intersect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fobject.intersect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fobject.intersect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fobject.intersect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jojoee","download_url":"https://codeload.github.com/jojoee/object.intersect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248553903,"owners_count":21123544,"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-manipulations","fast","intersect","intersection","key","object","property"],"created_at":"2024-11-07T12:26:43.951Z","updated_at":"2025-04-12T10:35:12.519Z","avatar_url":"https://github.com/jojoee.png","language":"JavaScript","readme":"# object.intersect\n\n[![Travis](https://img.shields.io/travis/jojoee/object.intersect.svg)](https://travis-ci.org/jojoee/object.intersect)\n[![Dependency Status](https://david-dm.org/jojoee/object.intersect.svg)](https://david-dm.org/jojoee/object.intersect) \n[![Codecov](https://img.shields.io/codecov/c/github/jojoee/object.intersect.svg)](https://codecov.io/github/jojoee/object.intersect)\n[![Version - npm](https://img.shields.io/npm/v/object.intersect.svg)](https://www.npmjs.com/package/object.intersect)\n[![License - npm](https://img.shields.io/npm/l/object.intersect.svg)](http://opensource.org/licenses/MIT)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release) [![Greenkeeper badge](https://badges.greenkeeper.io/jojoee/object.intersect.svg)](https://greenkeeper.io/)\n\nFast object.intersect key / PHP `array_intersect_key` with no dependencies\n\n## Installation\n\n```\n// npm\nnpm install object.intersect\nconst intersect = require('object.intersect')\n```\n\n## Example usage\n\n```javascript\nintersect() // {}\nintersect({}) // {}\nintersect(null) // {}\nintersect(undefined) // {}\n\nconst obj1 = { a: 'a', b: 'b', c: 'c' }\nconst obj2 = { a: 'a', b: 'x', c: 'c' }\nconst obj3 = { a: 'a', c: 'c' } // subset of obj\nintersect(obj1, obj2) // { a: 'a', b: 'b', c: 'c' }\nintersect(obj1, obj3, obj2) // { a: 'a', c: 'c' }\n```\n\n## Reference\n- [PHP: array_intersect_key - Manual](http://php.net/manual/en/function.array-intersect-key.php)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjojoee%2Fobject.intersect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjojoee%2Fobject.intersect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjojoee%2Fobject.intersect/lists"}