UNPKG

string.prototype.repeat

Version:

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

13 lines (8 loc) 183 B
'use strict'; var repeat = require('../'); var test = require('tape'); var runTests = require('./tests'); test('as a function', function (t) { runTests(repeat, t); t.end(); });