code: function( arr, item, fromIndex, compareFunc ){
        if( !fromIndex ){
          fromIndex = -1;
        }
  
        var index = -1;
        var i     = fromIndex;
        var j     = arr.length;
  
        for( ; i < j; i++ ){
          if( arr[ i ]  === item || compareFunc && compareFunc( arr[ i ], item )){
            index = i;
            break;
          }
        }
  
        return index;
      }
docs: This lets us detect if an Array contains a given element.
  @public
  @function
  @param {Array} arr The subject array.
  @param {Object} item Object to locate in the Array.
  @param {Number} fromIndex Starts checking from this position in the Array.(optional)
  @param {Function} compareFunc Function used to compare Array item vs passed item.(optional)
  @returns {Number} Return index position in the Array of the passed item.
  @example
  
  var inflection = require( 'inflection' );
  
  inflection.indexOf([ 'hi','there' ], 'guys' ); // === -1
  inflection.indexOf([ 'hi','there' ], 'hi' ); // === 0