@sheerid/jslib-nightly
Version:
SheerID JavaScript Library
13 lines (12 loc) • 487 B
TypeScript
/**
* Return false if not an object, or is an object with no own properties
*/
export declare function isEmptyObject(candidate: any): boolean;
export declare function deepClone<T>(obj: T): T;
/**
* Performs a deep merge of `source` into `target`.
* Mutates `target` only but not its objects and arrays.
*
* @author inspired from https://gist.github.com/ahtcx/0cd94e62691f539160b32ecda18af3d6#gistcomment-3120712
*/
export declare function deepMerge(...objects: object[]): object;