es6.string.link.js 192 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 'use strict'; // B.2.3.10 String.prototype.link(url) require('./_string-html')('link', function(createHTML){ return function link(url){ return createHTML(this, 'a', 'href', url); } });