We're a place where coders share, stay up-to-date and grow their careers.
Or not so optimized but shorter code:
const reverse2 = ([...str]) => str.map((ch,i)=>str[str.length-1-i]).join('');
Or not so optimized but shorter code: