MCPcopy Create free account
hub / github.com/ICBNetwork/web3-Wallet / equal

Function equal

ses.cjs:1844–1855  ·  view source on GitHub ↗
(
    actual,
    expected,
    optDetails=  undefined,
    ErrorConstructor=  undefined)

Source from the content-addressed store, hash-verified

1842
1843 /** @type {AssertEqual} */
1844 const equal= (
1845 actual,
1846 expected,
1847 optDetails= undefined,
1848 ErrorConstructor= undefined)=>
1849 {
1850 is(actual, expected)||
1851 fail(
1852 optDetails|| details `Expected ${actual} is same as ${expected}`,
1853 ErrorConstructor|| RangeError);
1854
1855 };
1856 freeze(equal);
1857
1858 /** @type {AssertTypeof} */

Callers

nothing calls this directly

Calls 1

failFunction · 0.85

Tested by

no test coverage detected