Last Updated: February 25, 2016
·
2.243K
· prasad8586

string exists in an array of strings in javascript + ignore case

Check if a string exists in an array of strings in javascript ignoring case.

objArray.map(function(item){ return item.toLowerCase()} ).indexOf(searchString.toLowerCase()) != -1