es.string.bold.js 425 B

123456789101112
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var createHTML = require('../internals/create-html');
  4. var forcedStringHTMLMethod = require('../internals/string-html-forced');
  5. // `String.prototype.bold` method
  6. // https://tc39.es/ecma262/#sec-string.prototype.bold
  7. $({ target: 'String', proto: true, forced: forcedStringHTMLMethod('bold') }, {
  8. bold: function bold() {
  9. return createHTML(this, 'b', '', '');
  10. }
  11. });