MCPcopy Index your code
hub / github.com/plotly/plotly.js / isInstance

Function isInstance

stackgl_modules/index.js:1517–1519  ·  view source on GitHub ↗
(obj, type)

Source from the content-addressed store, hash-verified

1515// the `instanceof` check but they should be treated as of that type.
1516// See: https://github.com/feross/buffer/issues/166
1517function isInstance(obj, type) {
1518 return obj instanceof type || obj != null && obj.constructor != null && obj.constructor.name != null && obj.constructor.name === type.name;
1519}
1520function numberIsNaN(obj) {
1521 // For IE11 support
1522 return obj !== obj; // eslint-disable-line no-self-compare

Callers 4

fromFunction · 0.85
fromArrayViewFunction · 0.85
index.jsFile · 0.85
byteLengthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…