code: function reverse (arr) {
    const reversedArray = [];
    for (let i = arr.length - 1; i >= 0; i--) {
      reversedArray.push(arr[i]);
    }
    return reversedArray;
  }
docs: Re-implemented to avoid Array.prototype.slice.call for performance reasons