es.string.strike.js 447 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.strike` method
  6. // https://tc39.github.io/ecma262/#sec-string.prototype.strike
  7. $({ target: 'String', proto: true, forced: forcedStringHTMLMethod('strike') }, {
  8. strike: function strike() {
  9. return createHTML(this, 'strike', '', '');
  10. }
  11. });