Sha256: ccffbbd30844540c965a1e2a5df1abd6c85af690c1695dda848a6b3830d402fe

Contents?: true

Size: 325 Bytes

Versions: 14

Compression:

Stored size: 325 Bytes

Contents

'use strict';

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

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

Version data entries

14 entries across 14 versions & 4 rubygems

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