igp5oq
Last Updated: February 25, 2016
·
531
· 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