diff --git a/src/object/cloneDeep.ts b/src/object/cloneDeep.ts index 682bc65ff..d1b2b025d 100644 --- a/src/object/cloneDeep.ts +++ b/src/object/cloneDeep.ts @@ -196,7 +196,7 @@ function cloneDeepImpl(obj: T, stack = new Map()): T { // eslint-disable-next-line export function copyProperties(target: any, source: any, stack?: Map): void { - const keys = Object.keys(source); + const keys = Reflect.ownKeys(source); for (let i = 0; i < keys.length; i++) { const key = keys[i];