Comment by plugnburn
11 years ago
By the way, ES6 syntax (works in modern foxes and chromes):
leftpad = (str, len, pd = ' ') => Array(len > str.length ? 1+len-str.length : 0).join(pd) + str
WTF are you talking about? Making this into a module?!
11 years ago
By the way, ES6 syntax (works in modern foxes and chromes):
leftpad = (str, len, pd = ' ') => Array(len > str.length ? 1+len-str.length : 0).join(pd) + str
WTF are you talking about? Making this into a module?!
No comments yet
Contribute on Hacker News ↗