Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
18 lines
344 B
Plaintext
18 lines
344 B
Plaintext
/*! https://mths.be/repeat v1.0.0 by @mathias */
|
|
|
|
'use strict';
|
|
|
|
var define = require('define-properties');
|
|
|
|
var getPolyfill = require('./polyfill');
|
|
|
|
module.exports = function shimRepeat() {
|
|
var polyfill = getPolyfill();
|
|
|
|
if (String.prototype.repeat !== polyfill) {
|
|
define(String.prototype, { repeat: polyfill });
|
|
}
|
|
|
|
return polyfill;
|
|
};
|