aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/modules/es.string.anchor.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/core-js/modules/es.string.anchor.js')
-rw-r--r--node_modules/core-js/modules/es.string.anchor.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/node_modules/core-js/modules/es.string.anchor.js b/node_modules/core-js/modules/es.string.anchor.js
new file mode 100644
index 0000000..004cc0a
--- /dev/null
+++ b/node_modules/core-js/modules/es.string.anchor.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.anchor` method
+// https://tc39.github.io/ecma262/#sec-string.prototype.anchor
+$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('anchor') }, {
+ anchor: function anchor(name) {
+ return createHTML(this, 'a', 'name', name);
+ }
+});