https://github.com/mjancarik/intersect-objects
The intersect-objects module help you with creating object intersection.
https://github.com/mjancarik/intersect-objects
Last synced: 3 months ago
JSON representation
The intersect-objects module help you with creating object intersection.
- Host: GitHub
- URL: https://github.com/mjancarik/intersect-objects
- Owner: mjancarik
- Created: 2017-10-12T20:32:51.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-11-21T17:10:38.000Z (11 months ago)
- Last Synced: 2025-07-02T22:47:37.230Z (3 months ago)
- Language: JavaScript
- Size: 103 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# intersect-objects
The intersect-objects module help you with creating object intersection.
## Installation
You can add the intersect-objects to your project.
```
npm i intersect-objects
```## Usage
```javascript
import { intersectObjects } from 'intersect-objects';const object1 = { a: 'a', b: 'b', c: 'c' }
const object2 = { a: 'a', b: 'x' }intersectObjects(object1, object2) // { a: 'a', b: 'x' }
// intersectObjects(...spread)intersectObjects() // {}
intersectObjects(undefined) // TypeError
intersectObjects(null) // TypeError
intersectObjects(false) // TypeError
intersectObjects(1) // TypeError```