GoScrobble/web/node_modules/core-js-pure/internals/to-string.js

7 lines
208 B
JavaScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
var isSymbol = require('../internals/is-symbol');
module.exports = function (argument) {
if (isSymbol(argument)) throw TypeError('Cannot convert a Symbol value to a string');
return String(argument);
};