MCPcopy Index your code
hub / github.com/tinyplex/tinybase / isInstanceOf

Function isInstanceOf

src/common/other.ts:56–59  ·  view source on GitHub ↗
(
  thing: unknown,
  cls: MapConstructor | SetConstructor | ObjectConstructor,
)

Source from the content-addressed store, hash-verified

54export const isInteger = number.isInteger;
55
56export const isInstanceOf = (
57 thing: unknown,
58 cls: MapConstructor | SetConstructor | ObjectConstructor,
59): boolean => thing instanceof cls;
60
61export const isNullish = (thing: unknown): thing is undefined | null =>
62 thing == null;

Callers 2

isMapFunction · 0.90
jsonStringWithMapFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…