es.string.repeat.js 245 B

12345678
  1. var $ = require('../internals/export');
  2. var repeat = require('../internals/string-repeat');
  3. // `String.prototype.repeat` method
  4. // https://tc39.es/ecma262/#sec-string.prototype.repeat
  5. $({ target: 'String', proto: true }, {
  6. repeat: repeat
  7. });