MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / equal

Function equal

misc/test-browser/assert.js:9–14  ·  view source on GitHub ↗
(actual, expected, reason)

Source from the content-addressed store, hash-verified

7}
8
9export function equal(actual, expected, reason) {
10 if (actual == expected) { return; }
11
12 if (reason == null) { reason = `${ actual } == ${ expected }`; }
13 throwError(reason, { actual, expected, operator: "==" });
14}
15
16function isDeepEqual(actual, expected, memo) {
17 if (actual === expected) { return true; }

Callers 2

deepEqualFunction · 0.70
okFunction · 0.70

Calls 1

throwErrorFunction · 0.70

Tested by

no test coverage detected