|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
317 bytes
|
| Rev | Line | |
|---|
| [9af201e] | 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | var $StringValueOf = require('call-bound')('String.prototype.valueOf');
|
|---|
| 4 |
|
|---|
| 5 | // https://262.ecma-international.org/6.0/#sec-properties-of-the-string-prototype-object
|
|---|
| 6 |
|
|---|
| 7 | module.exports = function thisStringValue(value) {
|
|---|
| 8 | if (typeof value === 'string') {
|
|---|
| 9 | return value;
|
|---|
| 10 | }
|
|---|
| 11 |
|
|---|
| 12 | return $StringValueOf(value);
|
|---|
| 13 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.