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

Function isObject

packages/jest-snapshot/src/utils.ts:25–27  ·  view source on GitHub ↗
(item: unknown)

Source from the content-addressed store, hash-verified

23import type {InlineSnapshot} from './types';
24
25function isObject(item: unknown): boolean {
26 return item != null && typeof item === 'object' && !Array.isArray(item);
27}
28
29// Add extra line breaks at beginning and end of multiline snapshot
30// to make the content easier to read.

Callers 2

deepMergeArrayFunction · 0.70
deepMergeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected