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

Compares two things by turning them into strings, trimming and lowercasing them, and comparing the string values. Works exactly like isEqual except will lowercase both things before comparing.

Examples

Example 1

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

Parameters

thing1: unknown
thing2: unknown

Return Type

boolean

Usage

import { isNotEqualIgnoreCase } from ".";