UNPKG

string.prototype.repeat

Version:

A robust & optimized `String.prototype.repeat` polyfill, based on the ECMAScript 6 specification.

21 lines (14 loc) 460 B
/*! https://mths.be/repeat v1.0.0 by @mathias */ 'use strict'; var callBind = require('es-abstract/helpers/callBind'); var define = require('define-properties'); var implementation = require('./implementation'); var getPolyfill = require('./polyfill'); var shim = require('./shim'); var boundRepeat = callBind(getPolyfill()); define(boundRepeat, { getPolyfill: getPolyfill, implementation: implementation, shim: shim }); module.exports = boundRepeat;