function findIndex(array, item) {
  return array.map(function (i) {
    return i.toLowerCase();
  }).indexOf(item.toLowerCase());
}
Find a string in an array. Case insensitive search
@param {Array.<string>} array
@param {string} item
@return {number} Returns the index when found. Returns -1 when not found