Welcome to mirror list, hosted at ThFree Co, Russian Federation.

shim.js « string.prototype.trimend « node_modules - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5a8f4773b0a2d12fae6c2823a8688ac73cec4b6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict';

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

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