mirror of https://github.com/jkjoy/sunpeiwen.git
8 lines
205 B
JavaScript
8 lines
205 B
JavaScript
|
'use strict';
|
||
|
// B.2.3.2 String.prototype.anchor(name)
|
||
|
require('./_string-html')('anchor', function (createHTML) {
|
||
|
return function anchor(name) {
|
||
|
return createHTML(this, 'a', 'name', name);
|
||
|
};
|
||
|
});
|