Compares two things by turning them into strings and lowercasing them, and comparing the string values. Works exactly like isEqual except will lowercase both things before comparing.
isEqual
isEqualIgnoreCase("1", 1); // trueisEqualIgnoreCase({foo: "bar"}, {foo: "bar"}); // trueisEqualIgnoreCase([], []); // trueisEqualIgnoreCase([0], [1]); // falseisEqualIgnoreCase(false, " false "); // falseisEqualIgnoreCase(false, "FALSE"); // true Copy
isEqualIgnoreCase("1", 1); // trueisEqualIgnoreCase({foo: "bar"}, {foo: "bar"}); // trueisEqualIgnoreCase([], []); // trueisEqualIgnoreCase([0], [1]); // falseisEqualIgnoreCase(false, " false "); // falseisEqualIgnoreCase(false, "FALSE"); // true
Compares two things by turning them into strings and lowercasing them, and comparing the string values. Works exactly like
isEqual
except will lowercase both things before comparing.