From cf94403444652dbd856591e5108fec014230d08c Mon Sep 17 00:00:00 2001 From: "shao.chenzhe" Date: Fri, 23 Aug 2024 15:40:51 +0800 Subject: [PATCH] fix: change get keys way --- src/object/cloneDeep.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];