From 58dcf36db4417f4eeb51f61c15d9b1111da4263f Mon Sep 17 00:00:00 2001 From: Vazgen Date: Thu, 24 Jun 2021 15:07:29 +0400 Subject: [PATCH] fix issue 1582 --- packages/shared/src/helpers.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/shared/src/helpers.ts b/packages/shared/src/helpers.ts index 5ee7796cd9..483c1f34c7 100644 --- a/packages/shared/src/helpers.ts +++ b/packages/shared/src/helpers.ts @@ -54,7 +54,9 @@ export function eachProp( ctx?: This ) { for (const key in obj) { - fn.call(ctx as any, obj[key] as any, key) + if (obj.hasOwnProperty(key)) { + fn.call(ctx as any, obj[key] as any, key) + } } }