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

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/string.prototype.trimend/shim.js')
-rw-r--r--node_modules/string.prototype.trimend/shim.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/node_modules/string.prototype.trimend/shim.js b/node_modules/string.prototype.trimend/shim.js
new file mode 100644
index 000000000..5a8f4773b
--- /dev/null
+++ b/node_modules/string.prototype.trimend/shim.js
@@ -0,0 +1,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;
+};