function isNotEqual
isNotEqual(
thing1: unknown,
thing2: unknown,
): boolean

Compares two things by turning them into strings, and comparing them by their string value.

Examples

Example 1

isNotEqual("1", 1); // true
isNotEqual({foo: "bar"}, {foo: "bar"}); // true
isNotEqual([], []); // true
isNotEqual([0], [1]); // false
isNotEqual(false, " false "); // true
isNotEqual(false, "FALSE"); // false

Parameters

thing1: unknown
thing2: unknown

Return Type

boolean

Usage

import { isNotEqual } from ".";