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

Function isAnyOrAnything

packages/jest-snapshot/src/utils.ts:86–89  ·  view source on GitHub ↗
(input: object)

Source from the content-addressed store, hash-verified

84 stringified.slice(1, -1).replaceAll(/\\("|\\)/g, '$1');
85
86const isAnyOrAnything = (input: object) =>
87 '$$typeof' in input &&
88 input.$$typeof === Symbol.for('jest.asymmetricMatcher') &&
89 ['Any', 'Anything'].includes(input.constructor.name);
90
91const deepMergeArray = (target: Array<any>, source: Array<any>) => {
92 const mergedOutput = [...target];

Callers 1

deepMergeArrayFunction · 0.85

Calls 1

forMethod · 0.80

Tested by

no test coverage detected