function reverseArray(arr) {
  const copied = [];
  const lim = arr.length;

  for (let i = lim - 1; i > -1; i--) {
    copied.push(arr[i]);
  }

  return copied;
}
/**
 * Reverses the passed in array
 * @param {*} arr The array to reverse
 * @returns {number[]} Copy of passed in array with contents reversed
 */
Reverses the passed in array
@param {*} arr The array to reverse
@returns {number[]} Copy of passed in array with contents reversed
Reverses the passed in array @param { * } arr The array to reverse @returns { number [] } Copy of passed in array with contents reversed
function reverseArray(arr) {
  const copied = [];
  const lim = arr.length;
  for (let i = lim - 1; i > -1; i--) {
    copied.push(arr[i]);
  }
  return copied;
}
function reverseArray ( arr ) { const copied = [ ] ; const lim = arr . length ; for ( let i = lim - 1 ; i > - 1 ; i -- ) { copied . push ( arr [ i ] ) ; } return copied ; }
Reverses the passed in array
 @param {*} arr The array to reverse
 @returns {number[]} Copy of passed in array with contents reversed
Reverses the passed in array @param { * } arr The array to reverse @returns { number [] } Copy of passed in array with contents reversed