I have a case like,
var givenTerms = [Tree, Plant, River, Ocean, Place, Sky];
var check = 'SKY';
if ($.inArray(check, givenTerms()) !== -1) {
// say it is present in givenTerms
}
This case fails as it is case sensitive. I could not use givenTerms.toLowercase()
as it is an array and not a single term. Is there any other possibility to make this if case true.
Any suggestion could be helpful.