astro-ghostcms/.pnpm-store/v3/files/e8/a91b69cb33b6d72221aeb92132b...

16 lines
356 B
Plaintext
Raw Permalink Normal View History

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