DEV Community

Discussion on: Reverse a String - Four JavaScript Solutions

Collapse
 
sir_wernich profile image
Wernich ️

first thing i thought of was reduceRight (works in the opposite direction to reduce), with no split or join :)

Array.from(str).reduceRight((acc, ch) => acc.concat(ch));