MCPcopy Index your code
hub / github.com/SocketCluster/socketcluster / isInstance

Function isInstance

app/public/socketcluster-client.js:4384–4388  ·  view source on GitHub ↗
(obj, type)

Source from the content-addressed store, hash-verified

4382// the `instanceof` check but they should be treated as of that type.
4383// See: https://github.com/feross/buffer/issues/166
4384function isInstance (obj, type) {
4385 return obj instanceof type ||
4386 (obj != null && obj.constructor != null && obj.constructor.name != null &&
4387 obj.constructor.name === type.name)
4388}
4389function numberIsNaN (obj) {
4390 // For IE11 support
4391 return obj !== obj // eslint-disable-line no-self-compare

Callers 4

fromFunction · 0.85
byteLengthFunction · 0.85
fromArrayViewFunction · 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…