All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.internals.to-string.js Maven / Gradle / Ivy

There is a newer version: 3.39.0
Show newest version
'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);
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy