UNPKG

rhodash

Version:

A deadly simple alternative to lodash

12 lines 605 B
import { ObjectOrClassInstance } from './types/object-or-class-instance'; /** * Create an object that contains keys not included in the other given object, using `===` string equal. * Be careful, not support for nested objects. * * @param target target object * @param other other object * @returns object that contains keys not included in the other given object. * @example objectDifference({ a: 1, b: 2 }, { a: 1, b: 0 }) // => { b: 2 } */ export declare function objectDifference<T extends ObjectOrClassInstance>(target: T, other: T): Partial<T>; //# sourceMappingURL=objectDifference.d.ts.map