es.string.repeat.js 252 B

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