diff --git a/lib/merge.ts b/lib/merge.ts index 41eea8f..27bb418 100644 --- a/lib/merge.ts +++ b/lib/merge.ts @@ -7,7 +7,7 @@ export const mergeCustomizer = ( key: 'string', object: any, ) => { - if (Array.isArray(srcVal)) { + if (Array.isArray(srcVal) || srcVal instanceof Buffer) { return srcVal; } else if (srcVal === undefined) { object[key] = srcVal;