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
; const object1 = a: 'a' b: 'b' c: 'c' const object2 = a: 'a' b: 'x' // { a: 'a', b: 'x' }// intersectObjects(...spread) // {} // TypeError // TypeError // TypeError // TypeError