function indexOf(array, value){
      for(let i = 0; i < array.length; i++){
      if(array[i] === value){
          return i;
      }
  }
  return -1;
  }
/**
  * indexOf: Designed to iterate over an Array, and return the index of the first 
  * occurrence of a specifed value. If no occurrence is found, -1 will be returned.
  * 
  * @param {Array} array: An array to be iterated over to access each element.
  * @param {value} value: a value to be searched for inside of the passed
  * in array argument.
  * 
  * @return {number}: A number indicating the index at which the value argument
  * was found inside of the array, if no matches were found -1 will be returned.
  */
Designed to iterate over an Array, and return the index of the first
occurrence of a specifed value. If no occurrence is found, -1 will be returned.

@param {Array} array: An array to be iterated over to access each element.
@param {value} value: a value to be searched for inside of the passed
in array argument.

@return {number}: A number indicating the index at which the value argument
was found inside of the array, if no matches were found -1 will be returned.
Designed to iterate over an Array and return the index of the first occurrence of a specifed value . If no occurrence is found - 1 will be returned . @param { Array } array : An array to be iterated over to access each element . @param { value } value : a value to be searched for inside of the passed in array argument . @return { number } : A number indicating the index at which the value argument was found inside of the array if no matches were found - 1 will be returned .
function indexOf(array, value){
      for(let i = 0; i < array.length; i++){
      if(array[i] === value){
          return i;
      }
  }
  return -1;
  }
function indexOf ( array , value ) { for ( let i = 0 ; i < array . length ; i ++ ) { if ( array [ i ] === value ) { return i ; } } return - 1 ; }
indexOf: Designed to iterate over an Array, and return the index of the first
 occurrence of a specifed value.
indexOf : Designed to iterate over an Array and return the index of the first occurrence of a specifed value .