MCPcopy Index your code
hub / github.com/nodejs/node / isInstanceof

Function isInstanceof

lib/internal/util/inspect.js:875–881  ·  view source on GitHub ↗
(object, proto)

Source from the content-addressed store, hash-verified

873}
874
875function isInstanceof(object, proto) {
876 try {
877 return object instanceof proto;
878 } catch {
879 return false;
880 }
881}
882
883// Special-case for some builtin prototypes in case their `constructor` property has been tampered.
884const wellKnownPrototypes = new SafeMap()

Callers 1

getConstructorNameFunction · 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…