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

Method isPluginEnabled

src/core/core.controller.js:1138–1140  ·  view source on GitHub ↗

* Check if a plugin with the specific ID is registered and enabled * @param {string} pluginId - The ID of the plugin of which to check if it is enabled * @returns {boolean}

(pluginId)

Source from the content-addressed store, hash-verified

1136 * @returns {boolean}
1137 */
1138 isPluginEnabled(pluginId) {
1139 return this._plugins._cache.filter(p => p.plugin.id === pluginId).length === 1;
1140 }
1141
1142 /**
1143 * @private

Callers 1

initializeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected