MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / isInstance

Method isInstance

packages/repository/src/types/union.ts:19–21  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

17 readonly name = 'union';
18
19 isInstance(value: any) {
20 return this.itemTypes.some(t => t.isInstance(value));
21 }
22
23 isCoercible(value: any) {
24 return this.itemTypes.some(t => t.isCoercible(value));

Callers

nothing calls this directly

Calls 1

isInstanceMethod · 0.65

Tested by

no test coverage detected