MCPcopy Create free account
hub / github.com/microsoft/SandDance / isInstance

Function isInstance

docs/app/js/sanddance-app.js:114062–114064  ·  view source on GitHub ↗
(obj, type)

Source from the content-addressed store, hash-verified

114060// the `instanceof` check but they should be treated as of that type.
114061// See: https://github.com/feross/buffer/issues/166
114062function isInstance(obj, type) {
114063 return obj instanceof type || obj != null && obj.constructor != null && obj.constructor.name != null && obj.constructor.name === type.name;
114064}
114065function numberIsNaN(obj) {
114066 // For IE11 support
114067 return obj !== obj // eslint-disable-line no-self-compare

Callers 4

fromFunction · 0.70
fromArrayViewFunction · 0.70
sanddance-app.jsFile · 0.70
byteLengthFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected