Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

es.string.pad-end.js 482B

123456789101112
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var $padEnd = require('../internals/string-pad').end;
  4. var WEBKIT_BUG = require('../internals/string-pad-webkit-bug');
  5. // `String.prototype.padEnd` method
  6. // https://tc39.es/ecma262/#sec-string.prototype.padend
  7. $({ target: 'String', proto: true, forced: WEBKIT_BUG }, {
  8. padEnd: function padEnd(maxLength /* , fillString = ' ' */) {
  9. return $padEnd(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);
  10. }
  11. });