first object
second object
Optional
options: { additional options
Optional
disregardif true, the order of the elements in the array will be disregarded e.g. [1, 2] and [2, 1] will be considered equal
true
if the objects are equal, false
otherwise
Flattens an object to a single level, with the nested keys separated by a delimiter
.
Optional
delimiter: string = '.'deepFlatten({ a: { b: 1, c: 2 } });
// => { 'a.b': 1, 'a.c': 2 }
deepFlatten({ a: { b: 1, c: 2 } }, '/');
// => { 'a/b': 1, 'a/c': 2 }
deepFlatten({ a: { b: 1, c: { d: 'some val' } }, d: 3 });
// => { 'a.b': 1, 'a.c.d': 'some val', d: 3 }
Generated using TypeDoc
Compares two objects and returns true if they have the same structure and values. Can work with arrays and objects, nested objects, recursive objects, dates, etc.