Make an assertion that actual and expected are equal using Object.is for equality comparison. If not, then throw.
actual
expected
Optional
24.7.0
import { assertStrictEquals } from "assert";const a = {};const b = a;assertStrictEquals(a, b); // Doesn't throwconst c = {};const d = {};assertStrictEquals(c, d); // Throws Copy
import { assertStrictEquals } from "assert";const a = {};const b = a;assertStrictEquals(a, b); // Doesn't throwconst c = {};const d = {};assertStrictEquals(c, d); // Throws
Make an assertion that
actual
andexpected
are equal using Object.is for equality comparison. If not, then throw.