<reponame>chukxsemmy/alx-higher_level_programming<filename>0x13-javascript_objects_scopes_closures/8-esrever.js<gh_stars>0#!/usr/bin/node

const esrever = (list) => {
  const reversedArray = [];
  list.forEach((element) => reversedArray.unshift(element));
  return (reversedArray);
};

module.exports = { esrever };
