10 lines
259 B
JavaScript
Raw Normal View History

2024-08-24 20:48:14 +02:00
'use strict';
var classof = require('../internals/classof');
var $String = String;
module.exports = function (argument) {
if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
return $String(argument);
};