DEV Community

Discussion on: Let's solve a one-liner code puzzle

Collapse
 
chico1992 profile image
chico1992 • Edited

I got a solution of 39 characters and after seeing yours i got to an even shorter one
f=(a,b)=>a.push(...b)
My first solution was
f=(a,b)=>[...a,...b].reduce((d)=>1+d,0)

Collapse
 
jankapunkt profile image
Jan Küster

Impressing! So it's 21 characters at the lowest :-)