Sha256: ce1eb2dac818aa3127277b4742f71875c5a486e01e00258343a191b3baaafcf8

Contents?: true

Size: 322 Bytes

Versions: 14

Compression:

Stored size: 322 Bytes

Contents

'use strict';

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

module.exports = function getPolyfill() {
	if (!String.prototype.trimLeft) {
		return implementation;
	}
	var zeroWidthSpace = '\u200b';
	if (zeroWidthSpace.trimLeft() !== zeroWidthSpace) {
		return implementation;
	}
	return String.prototype.trimLeft;
};

Version data entries

14 entries across 14 versions & 4 rubygems

Version Path
disco_app-0.18.0 test/dummy/node_modules/string.prototype.trimleft/polyfill.js
disco_app-0.18.2 test/dummy/node_modules/string.prototype.trimleft/polyfill.js
disco_app-0.16.1 test/dummy/node_modules/string.prototype.trimleft/polyfill.js
disco_app-0.15.2 test/dummy/node_modules/string.prototype.trimleft/polyfill.js
disco_app-0.18.4 test/dummy/node_modules/string.prototype.trimleft/polyfill.js
disco_app-0.18.1 test/dummy/node_modules/string.prototype.trimleft/polyfill.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/string.prototype.trimleft/polyfill.js
disco_app-0.14.0 test/dummy/node_modules/string.prototype.trimleft/polyfill.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/string.prototype.trimleft/polyfill.js
enju_library-0.3.8 spec/dummy/node_modules/string.prototype.trimleft/polyfill.js
ilog-0.4.1 node_modules/string.prototype.trimleft/polyfill.js
ilog-0.4.0 node_modules/string.prototype.trimleft/polyfill.js
ilog-0.3.3 node_modules/string.prototype.trimleft/polyfill.js
learn_create-0.0.22 lib/templates/javascript_lab_template/node_modules/string.prototype.trimleft/polyfill.js