UNPKG

259 BJavaScriptView Raw
1'use strict';
2var classof = require('../internals/classof');
3
4var $String = String;
5
6module.exports = function (argument) {
7 if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
8 return $String(argument);
9};