aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/modules/es.string.trim.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/core-js/modules/es.string.trim.js')
-rw-r--r--node_modules/core-js/modules/es.string.trim.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/node_modules/core-js/modules/es.string.trim.js b/node_modules/core-js/modules/es.string.trim.js
new file mode 100644
index 0000000..124768f
--- /dev/null
+++ b/node_modules/core-js/modules/es.string.trim.js
@@ -0,0 +1,12 @@
+'use strict';
+var $ = require('../internals/export');
+var $trim = require('../internals/string-trim').trim;
+var forcedStringTrimMethod = require('../internals/string-trim-forced');
+
+// `String.prototype.trim` method
+// https://tc39.github.io/ecma262/#sec-string.prototype.trim
+$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
+ trim: function trim() {
+ return $trim(this);
+ }
+});