.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / modules / es.string.anchor.js
1 'use strict';
2 var $ = require('../internals/export');
3 var createHTML = require('../internals/create-html');
4 var forcedStringHTMLMethod = require('../internals/string-html-forced');
5
6 // `String.prototype.anchor` method
7 // https://tc39.es/ecma262/#sec-string.prototype.anchor
8 $({ target: 'String', proto: true, forced: forcedStringHTMLMethod('anchor') }, {
9   anchor: function anchor(name) {
10     return createHTML(this, 'a', 'name', name);
11   }
12 });