DEV Community

Discussion on: What’s your alternative solution? Challenge #24

Collapse
 
pratyushcrd profile image
Pratyush

Yeah! but it also mutates the original array.. so a better way would be array.slice().reverse() :)