diff-keys v1.0.0
npm install diff-keys
- Traverse each object recursively, using
hasOwnProperty
on the second object. - Return an array of keys that exist in one object, but are missing from the other.
Usage
const diffKeys = // => ['a', 'c'] // => ['a.b', 'a.c']