Last change
on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
466 bytes
|
Rev | Line | |
---|
[6a3a178] | 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.fontcolor` method
|
---|
| 7 | // https://tc39.es/ecma262/#sec-string.prototype.fontcolor
|
---|
| 8 | $({ target: 'String', proto: true, forced: forcedStringHTMLMethod('fontcolor') }, {
|
---|
| 9 | fontcolor: function fontcolor(color) {
|
---|
| 10 | return createHTML(this, 'font', 'color', color);
|
---|
| 11 | }
|
---|
| 12 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.