👁 View: polyfill.js
Path: /home/thiqat5/sb.thiqatech.com/node_modules/string.prototype.trimright/polyfill.js
Size: 325 B · Modified: 1985-10-26 12:15:00 · Perm: 0644 · Writable
'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;
};