4 ms·
Lodash only got padLeft in version 3.0.0 (released last January), and then that method was renamed to padStart in 4.0.0 this January, so it's not exactly the pa
by jasongill 11y ago
Lodash only got padLeft in version 3.0.0 (released last January), and then that method was renamed to padStart in 4.0.0 this January, so it's not exactly the paragon of reliability (although I understand your sentiment)
- sod 11y agodalton likes to name methods as ecmascript itself, what I very much appreciate. padStart() was proposed as standard after lodash 3.0.0 was released. So he changed it on the next major release: https://github.com/tc39/proposal-string-pad-start-end https://github.com/tc39/proposal-string-pad-start-end
- jdd 11y agoNaw, I changed it on a major bump which requires opt-in and didn't pull the rug out from underneath people. As @sod pointed out the change is based on the newish ES7 proposal.