mirror of
https://github.com/xlorepdarkhelm/numinar-coding-project.git
synced 2026-09-06 05:28:25 -04:00
10 lines
259 B
JavaScript
10 lines
259 B
JavaScript
'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);
|
|
};
|