MCPcopy
hub / github.com/colinhacks/zod / instanceofClass

Function instanceofClass

packages/bench/instanceof.ts:21–21  ·  view source on GitHub ↗
(x: any)

Source from the content-addressed store, hash-verified

19});
20
21const instanceofClass = (x: any) => x instanceof ZodFailure; // 0.64!
22const instanceofPromise = (x: any) => x instanceof Promise; // 0.64!
23const keyin = (x: any) => typeof x === "object" && x && ZOD_FAILURE in x;
24// const typeofObject = (x: any) => typeof x === "object";

Callers 1

instanceof.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected