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

Method _get

src/core/core.registry.js:175–181  ·  view source on GitHub ↗

* @private

(id, typedRegistry, type)

Source from the content-addressed store, hash-verified

173 * @private
174 */
175 _get(id, typedRegistry, type) {
176 const item = typedRegistry.get(id);
177 if (item === undefined) {
178 throw new Error('"' + id + '" is not a registered ' + type + '.');
179 }
180 return item;
181 }
182
183}
184

Callers 4

getControllerMethod · 0.95
getElementMethod · 0.95
getPluginMethod · 0.95
getScaleMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected