Name: String.prototype.padEnd
Owner: ECMAScript Shims
Description: ES spec-compliant shim for String.prototype.padEnd
Created: 2015-07-30 07:02:10.0
Updated: 2018-05-18 15:55:03.0
Pushed: 2017-07-18 07:45:23.0
Homepage: https://github.com/tc39/proposal-string-pad-start-end
Size: 32
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
An ES2017 spec-compliant String.prototype.padEnd
shim. Invoke its “shim” method to shim String.prototype.padEnd
if it is unavailable.
This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec.
Most common usage:
padEnd = require('string.prototype.padend');
rt(padEnd('foo', 5, 'bar') === 'fooba');
nd.shim();
rt(padEnd('foo', 2) === 'foo'.padEnd(2));
Simply clone the repo, npm install
, and run npm test