UNPKG

string.prototype.repeat

Version:

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

10 lines (6 loc) 212 B
/*! https://mths.be/repeat v1.0.0 by @mathias */ 'use strict'; var implementation = require('./implementation'); module.exports = function getPolyfill() { return String.prototype.repeat || implementation; };