MCPcopy Index your code
hub / github.com/nodejs/node / isSimpleDiff

Function isSimpleDiff

lib/internal/assert/assertion_error.js:177–183  ·  view source on GitHub ↗
(actual, inspectedActual, expected, inspectedExpected)

Source from the content-addressed store, hash-verified

175}
176
177function isSimpleDiff(actual, inspectedActual, expected, inspectedExpected) {
178 if (inspectedActual.length > 1 || inspectedExpected.length > 1) {
179 return false;
180 }
181
182 return typeof actual !== 'object' || actual === null || typeof expected !== 'object' || expected === null;
183}
184
185function createErrDiff(actual, expected, operator, customMessage, diffType = 'simple') {
186 operator = checkOperator(actual, expected, operator);

Callers 1

createErrDiffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…