MCPcopy
hub / github.com/chartjs/Chart.js / addIfFound

Function addIfFound

src/core/core.config.js:151–156  ·  view source on GitHub ↗
(set, obj, key)

Source from the content-addressed store, hash-verified

149}
150
151const addIfFound = (set, obj, key) => {
152 const opts = resolveObjectKey(obj, key);
153 if (opts !== undefined) {
154 set.add(opts);
155 }
156};
157
158export default class Config {
159 constructor(config) {

Callers 1

getOptionScopesMethod · 0.85

Calls 2

resolveObjectKeyFunction · 0.85
addMethod · 0.65

Tested by

no test coverage detected