From ca77bed3189d2b0fd6c2cd02325b337ed5f71505 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Mon, 11 Sep 2023 09:31:29 +0300 Subject: [PATCH] fix: simplify check hasFunction (#11490) --- src/core/core.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/core.config.js b/src/core/core.config.js index 209e87291..6e83d5de3 100644 --- a/src/core/core.config.js +++ b/src/core/core.config.js @@ -400,7 +400,7 @@ function getResolver(resolverCache, scopes, prefixes) { } const hasFunction = value => isObject(value) - && Object.getOwnPropertyNames(value).reduce((acc, key) => acc || isFunction(value[key]), false); + && Object.getOwnPropertyNames(value).some((key) => isFunction(value[key])); function needContext(proxy, names) { const {isScriptable, isIndexable} = _descriptors(proxy); -- 2.47.3