Polyfills for String.prototype.padStart and String.prototype.padEnd
Based on the reference implementation by tc39 found here.
Install
Install with
npm install es7-string-polyfills --save-dev
Usage
Load it in your code with an import statement:
;
Or from a script tag:
The polyfills will be applied automatically if necessary.