code: function indexOf(array, searchElement, fromIndex)
      {
          fromIndex = Math.max(fromIndex || 0, 0);
  
          for (var i = fromIndex; i < array.length; i++)
              if(array[i] == searchElement)
                  return i;
  
          return -1;
      }
docs: Finds an index of element in the array.
  @ignore
  @param {Object} searchElement
  @param {Number} fromIndex
  @return {Number} Returns index of element if found; -1 otherwise.