@web3r/flowerkit
Version:
A collection of more than 60 often used utility JS functions that simplify frontend development.
20 lines • 686 B
TypeScript
/**
* Gets one deeply merged object from two objects
* @param target{Object=} - target object
* @param source{Object=} - source object
* @param options{Object=} - merge options
* @param options.isMergeArrays{Boolean=} - concat nested arrays or use target value
* @return {Object}
* @example
* // How to deeply merge two objects?
* const targetObj = {
* first: [ "foo" ],
* }
* const sourceObj = {
* first: [ "moo" ],
* boo: 12
* }
* getMergedObj(targetObj, sourceObj) // => { first: [ "foo", "moo" ], boo: 12 }
*/
export function getMergedObj(target?: any | undefined, source?: any | undefined, options?: any | undefined): any;
//# sourceMappingURL=index.d.ts.map