Identifies the signature of the equals function that performs equality checks between
the actual and expected values, throwing an AssertionFailure with the given message
when the actual value is not equal to the expected value.
The actual equality check is based on the implementation of this signature, and may be
either a strict or loose equality check.
The type of the expected value.
assert.equal(1, 1); // Passes
assert.equal("a", "a"); // Passes
assert.equal(true, true); // Passes
assert.equal(false, false); // Passes
assert.equal(null, null); // Passes
assert.equal(undefined, undefined); // Passes
assert.equal(0, 0); // Passes
assert.equal(-0, -0); // Passes
assert.equal(+0, +0); // Passes
assert.equal(0n, 0n); // Passes
assert.equal("", ""); // Passes
assert.equal(Symbol(), Symbol()); // Passes
assert.equal([], []); // Throws AssertionError
assert.equal([1, 2], [1, 2]); // Throws AssertionError
Identifies the signature of the equals function that performs equality checks between the
actualandexpectedvalues, throwing anAssertionFailurewith the given message when theactualvalue is not equal to theexpectedvalue. The actual equality check is based on the implementation of this signature, and may be either a strict or loose equality check.