Make an assertion that actual and expected are not equal, deeply. If not then throw.
actual
expected
Type parameter can be specified to ensure values under comparison have the same type.
Optional
24.7.0
import { assertNotEquals } from "assert";assertNotEquals(1, 2); // Doesn't throwassertNotEquals(1, 1); // Throws Copy
import { assertNotEquals } from "assert";assertNotEquals(1, 2); // Doesn't throwassertNotEquals(1, 1); // Throws
Make an assertion that
actual
andexpected
are not equal, deeply. If not then throw.Type parameter can be specified to ensure values under comparison have the same type.