Sha256: cca8bb5b4547b6325f08ca7a3e8f7bd97468a41c55fb7e20072d077fbfdb3838

Contents?: true

Size: 463 Bytes

Versions: 50

Compression:

Stored size: 463 Bytes

Contents

'use strict';

var implementation = require('./implementation');

module.exports = function getPolyfill() {
	if (!String.prototype.trimStart && !String.prototype.trimLeft) {
		return implementation;
	}
	var zeroWidthSpace = '\u200b';
	var trimmed = zeroWidthSpace.trimStart ? zeroWidthSpace.trimStart() : zeroWidthSpace.trimLeft();
	if (trimmed !== zeroWidthSpace) {
		return implementation;
	}
	return String.prototype.trimStart || String.prototype.trimLeft;
};

Version data entries

50 entries across 49 versions & 6 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/string.prototype.trimstart/polyfill.js
immosquare-cleaner-0.1.50 node_modules/string.prototype.trimstart/polyfill.js
immosquare-cleaner-0.1.49 node_modules/string.prototype.trimstart/polyfill.js
immosquare-cleaner-0.1.48 node_modules/string.prototype.trimstart/polyfill.js
immosquare-cleaner-0.1.47 node_modules/string.prototype.trimstart/polyfill.js
immosquare-cleaner-0.1.46 node_modules/string.prototype.trimstart/polyfill.js
immosquare-cleaner-0.1.45 node_modules/string.prototype.trimstart/polyfill.js
immosquare-cleaner-0.1.44 node_modules/string.prototype.trimstart/polyfill.js
immosquare-cleaner-0.1.43 node_modules/string.prototype.trimstart/polyfill.js
immosquare-cleaner-0.1.42 node_modules/string.prototype.trimstart/polyfill.js
immosquare-cleaner-0.1.41 node_modules/string.prototype.trimstart/polyfill.js
immosquare-cleaner-0.1.40 node_modules/string.prototype.trimstart/polyfill.js
immosquare-cleaner-0.1.39 node_modules/string.prototype.trimstart/polyfill.js
immosquare-cleaner-0.1.38 node_modules/string.prototype.trimstart/polyfill.js
optimacms-0.1.61 spec/dummy/node_modules/string.prototype.trimstart/polyfill.js
immosquare-cleaner-0.1.32 node_modules/string.prototype.trimstart/polyfill.js
immosquare-cleaner-0.1.31 node_modules/string.prototype.trimstart/polyfill.js
immosquare-cleaner-0.1.30 node_modules/string.prototype.trimstart/polyfill.js
immosquare-cleaner-0.1.29 node_modules/string.prototype.trimstart/polyfill.js
immosquare-cleaner-0.1.28 node_modules/string.prototype.trimstart/polyfill.js