String.prototype.padStart Polyfill for String.prototype.padStart() Run Tests $ npm run test Related: String.prototype.padEnd()