export deepMerge
This commit is contained in:
@ -42,7 +42,7 @@ export function deepCopy<T>(value: T): T {
|
||||
* @param sources Objects that will copied into target
|
||||
* @return {any} The des
|
||||
*/
|
||||
function deepMerge<T>(target: any, ...sources: any[]): T {
|
||||
export function deepMerge<T>(target: any, ...sources: any[]): T {
|
||||
for(const source of sources) {
|
||||
for(const key in source) {
|
||||
if(source[key] && typeof source[key] == 'object' && !Array.isArray(source[key])) {
|
||||
|
Reference in New Issue
Block a user