👁 View: shim.js
Path: /home/thiqat5/sb.thiqatech.com/node_modules/string.prototype.trimright/shim.js
Size: 337 B · Modified: 1985-10-26 12:15:00 · Perm: 0644 · Writable
'use strict';

var define = require('define-properties');
var getPolyfill = require('./polyfill');

module.exports = function shimTrimRight() {
	var polyfill = getPolyfill();
	define(
		String.prototype,
		{ trimRight: polyfill },
		{ trimRight: function () { return String.prototype.trimRight !== polyfill; } }
	);
	return polyfill;
};