MCPcopy
hub / github.com/jestjs/jest / isObject

Function isObject

packages/expect/src/toThrowMatchers.ts:519–521  ·  view source on GitHub ↗
(obj: unknown)

Source from the content-addressed store, hash-verified

517}
518
519function isObject(obj: unknown) {
520 return obj != null && typeof obj === 'object';
521}
522
523function messageAndCause(error: Error) {
524 return error.cause === undefined ? 'message' : 'message and cause';

Callers 2

createMessageAndCauseFunction · 0.70
buildSerializeErrorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected