es-shims/String.prototype.padEnd

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

String.prototype.padEnd Version Badge

Build Status dependency status dev dependency status License Downloads

npm badge

browser support

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));
Tests

Simply clone the repo, npm install, and run npm test


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.