3 ms·
> So if your code is literally the same, there's no reason not to extract it into a function. Isn't that how we ended up with left-pad.js?
by amorphid 9y ago
> So if your code is literally the same, there's no reason not to extract it into a function.
Isn't that how we ended up with left-pad.js?
- naasking 9y agoNothing wrong with importing a left-pad module if you're using a sane language with a sane development toolbox. I'll leave it to you to decide whether JS fits that bill.