Sha256: 41266d6d206216a25bfa5a523fafdbdb9d006b69987badbbe9265706e7568958

Contents?: true

Size: 344 Bytes

Versions: 7

Compression:

Stored size: 344 Bytes

Contents

/*! 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;
};

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/string.prototype.repeat/shim.js
immosquare-cleaner-0.1.50 node_modules/string.prototype.repeat/shim.js
immosquare-cleaner-0.1.49 node_modules/string.prototype.repeat/shim.js
immosquare-cleaner-0.1.48 node_modules/string.prototype.repeat/shim.js
immosquare-cleaner-0.1.47 node_modules/string.prototype.repeat/shim.js
immosquare-cleaner-0.1.46 node_modules/string.prototype.repeat/shim.js
immosquare-cleaner-0.1.45 node_modules/string.prototype.repeat/shim.js