mutated original object
Like lodash.flattenDeep, except it flattens an array property of an object. e.g.: { id: 1, children: [ { id: 2, children: [ { id: 3 } ] } ] } become: [ { id: 1, children: [...] }, { id: 2, children: [...] }, { id: 3 }, ]
target to be flattened
name or getter of the target array
Check whether A equals B
Merge Objects from left to right Array and plain object properties are merged recursively. Other objects and value types are overridden by assignment Subsequent object overwrite property assignments of previous object.
Deep clone one object
any
any
Shallow compare two arrays/objects
Generated using TypeDoc
A simple version of lodash.defaults. e.g.: defaults({}, 'couldBeUndefined', { a: 1 }).countBeUndefined // { a: 1 } To avoid writing code like: let val = obj.someProp if (val === undefined) { val = obj.someProp = defaultValue }