Skip to content
On this page

objectDifference

Create an object that contains keys not included in the other given object, using === string equal. Be careful, not support for nested objects.

Example

objectDifference({ a: 1, b: 2 }, { a: 1, b: 0 }) // => { b: 2 }

Playground

const { objectDifference } = require('rhodash')
objectDifference({ a: 1, b: 2 }, { a: 1, b: 0 }) // => { b: 2 }