API reference@evolu/commonAssert › assertNotSame

function assertNotSame(actual: unknown, expected: unknown): void;

Defined in: packages/common/src/Assert.ts:1043

Asserts that two values are not the same using Object.is.

The opposite of assertSame.

Example

import { assertNotSame } from "@evolu/common";

const first = { name: "Ada" };
const second = { name: "Ada" };

assertNotSame(first, second);
assertNotSame(0, -0);