I saw the use of an .equals()
method in a Stackoverflow posting:
Any way to make jQuery.inArray() case insensitive?
var matchString = "MATCHME";
var rslt = null;
$.each(['foo', 'bar', 'matchme'], function(index, value) {
if (rslt == null && value.toLowerCase().equals(matchString.toLowerCase())) {
rslt = index;
return false;
}
});
Yet I cannot find any documentation on this method. Any references would help.