3 ms·
It's much worse than that. String.prototype.padStart has been available in Node since 8.0, and browsers for a long time. It's not in IE but polyfills are common
by onion2k 5y ago
It's much worse than that. String.prototype.padStart has been available in Node since 8.0, and browsers for a long time. It's not in IE but polyfills are common.
If your first thought is a library, whether you wrote it yourself or not, then you're doing JS badly.
- Vinnl 5y agoTo be fair, Node.js 8 was released in 2017; this happened in 2016.