code: function mapArray(fn, array) {
    let newArray = [],
        index = -1;
  
    while (++index < array.length) {
      newArray[index] = fn(array[index], index, array);
    }
  
    return newArray;
  }
docs: @function mapArray
  
  @description
  map the array to a new array based on the returns of the call with fn
  
  @param {function(*, number, Array<*>): *} fn the method to map with
  @param {Array<*>} array the array of items to map
  @returns {Array<*>} the mapped items