DEV Community

Discussion on: JS warmup exercises... one-liner edition

Collapse
 
easrng profile image
easrng

Also, const promiser = f => Promise.resolve(f); or const promiser = async f => f are shorter.

Collapse
 
jpantunes profile image
JP Antunes

Cool! I also have a couple on Fibonnaci here: dev.to/jpantunes/12-ways-to-fibona... and Caesars chiper here: dev.to/jpantunes/render-to-caesar-... if you want to have a look. Actually i have around 100 of these in a collection if you're up for it :-)