MCPcopy Create free account
hub / github.com/chieapp/chie / matchClass

Function matchClass

src/util/object-utils.ts:47–49  ·  view source on GitHub ↗
(parent: object, child: object)

Source from the content-addressed store, hash-verified

45
46// Return if |parent| equals |child| or |parent| is a parent of |child|.
47export function matchClass(parent: object, child: object) {
48 return parent == child || Object.prototype.isPrototypeOf.call(parent, child);
49}

Callers 7

cliMainFunction · 0.90
createAssistantMethod · 0.90
registerServiceMethod · 0.90
createServiceMethod · 0.90
#onSubmitMethod · 0.90
constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected