DEV Community

Discussion on: How to shift array position in vanilla JavaScript

 
lexlohr profile image
Alex Lohr

How about const lastToFirst = _ => ($ => [$.pop(), ...$])(_.slice()) as even more convoluted example?

Thread Thread
 
link2twenty profile image
Andrew Bone

Yikes...

I kinda love it.