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