MCPcopy
hub / github.com/feross/buffer / isInstance

Function isInstance

index.js:2075–2079  ·  view source on GitHub ↗
(obj, type)

Source from the content-addressed store, hash-verified

2073// the `instanceof` check but they should be treated as of that type.
2074// See: https://github.com/feross/buffer/issues/166
2075function isInstance (obj, type) {
2076 return obj instanceof type ||
2077 (obj != null && obj.constructor != null && obj.constructor.name != null &&
2078 obj.constructor.name === type.name)
2079}
2080function numberIsNaN (obj) {
2081 // For IE11 support
2082 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…