MCPcopy
hub / github.com/vitest-dev/vitest / isA

Function isA

packages/expect/src/jest-utils.ts:317–319  ·  view source on GitHub ↗
(typeName: string, value: unknown)

Source from the content-addressed store, hash-verified

315}
316
317export function isA(typeName: string, value: unknown): boolean {
318 return Object.prototype.toString.apply(value) === `[object ${typeName}]`
319}
320
321function isDomNode(obj: any): boolean {
322 return (

Callers 8

constructorMethod · 0.90
asymmetricMatchMethod · 0.90
constructorMethod · 0.90
asymmetricMatchMethod · 0.90
constructorMethod · 0.90
asymmetricMatchMethod · 0.90
isAsymmetricFunction · 0.85
iterableEqualityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected