diff --git a/src/js/utils/merge/merge.ts b/src/js/utils/merge/merge.ts index 88e80a8..b2f3528 100644 --- a/src/js/utils/merge/merge.ts +++ b/src/js/utils/merge/merge.ts @@ -36,7 +36,7 @@ export function merge( object: T, source: U forOwn( source, ( value, key ) => { if ( Array.isArray( value ) ) { - merged[ key ] = value.slice(); + merged[ key ] = (value as []).slice(); } else if ( isObject( value ) ) { merged[ key ] = merge( isObject( merged[ key ] ) ? merged[ key ] : {}, value ); } else {