3 ms·
I just looked at the famous left-pad for the fastest way o implementing a pad function in JS. I asked a friend that does web dev and it is apparently pretty id
by bjoli 9y ago
I just looked at the famous left-pad for the fastest way o implementing a pad function in JS.
I asked a friend that does web dev and it is apparently pretty idiomatic JS. Pretty appalling. I finally understood why people claimed it was "hard to get right".