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

Function _isDomSupported

src/helpers/helpers.dom.ts:9–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 * @private
8 */
9export function _isDomSupported(): boolean {
10 return typeof window !== 'undefined' && typeof document !== 'undefined';
11}
12
13/**
14 * @private

Callers 3

getCanvasFunction · 0.85
helpers.dom.tsFile · 0.85
_detectPlatformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected