mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-10 10:16:50 +01:00
fix: simplify check hasFunction (#11490)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user