Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
12 lines
648 B
Plaintext
12 lines
648 B
Plaintext
/**
|
|
* Very simple, but fast deepMerge implementation. Only deepMerges objects, not arrays and clones everything.
|
|
* Do not use this if your object contains any complex objects like React Components, or if you would like to combine Arrays.
|
|
* If you only have simple objects and need a fast deepMerge, this is the function for you.
|
|
*
|
|
* obj2 takes precedence over obj1 - thus if obj2 has a key that obj1 also has, obj2's value will be used.
|
|
*
|
|
* @param obj1 base object
|
|
* @param obj2 object to merge "into" obj1
|
|
*/
|
|
export declare function deepMergeSimple<T = object>(obj1: object, obj2: object): T;
|
|
//# sourceMappingURL=deepMergeSimple.d.ts.map |