UNPKG

string.prototype.padstart

Version:

ES2017 spec-compliant String.prototype.padStart shim.

8 lines (5 loc) 213 B
'use strict'; var implementation = require('./implementation'); module.exports = function getPolyfill() { return typeof String.prototype.padStart === 'function' ? String.prototype.padStart : implementation; };