diff --git a/src/core/core.config.js b/src/core/core.config.js index 209e87291ab..6e83d5de327 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);