code: function arrayIndexOfComparer(array, item, comparer) {
      for (var i = 0, len = array.length; i < len; i++) {
        if (comparer(array[i], item)) { return i; }
      }
      return -1;
    }
docs: Swap out for Array.findIndex