Hacker News new | ask | show | jobs
by BeefWellington 891 days ago
While this is true, when the shipped standard library by NodeJS lacks so many VERY BASIC features that every other language has, OF COURSE developers choosing/being instructed to use JS so that frontend and backend languages are synced are going to reach for packages to solve whatever functionality should already exist in code like: "Jim".leftPad(4)
1 comments

"Jim".padStart(4) has existed in JS (and Node) for 6 years now.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...