Urara-Blog/node_modules/.pnpm-store/v3/files/87/ab88ee1dd1c0d7d9a9d9b9bdfbb9b999cbda3943241fba8b53b727152a0a9afea4be34d3f6174808a87c8c4f932e28262a2a9edfc1f1be4a97abd5ec4e612b
2022-08-14 01:14:53 +08:00

15 lines
361 B
Text

'use strict';
var $StringValueOf = require('call-bind/callBound')('String.prototype.valueOf');
var Type = require('./Type');
// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-string-prototype-object
module.exports = function thisStringValue(value) {
if (Type(value) === 'String') {
return value;
}
return $StringValueOf(value);
};