source: frontend/node_modules/es-abstract/2018/thisStringValue.js

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
RevLine 
[9af201e]1'use strict';
2
3var $StringValueOf = require('call-bound')('String.prototype.valueOf');
4
5// https://262.ecma-international.org/6.0/#sec-properties-of-the-string-prototype-object
6
7module.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.