Sha256: 022d9607897bf8b6bca932dbfb3094ec288b626ab9c8300d9e7c19ecdf66832b
Contents?: true
Size: 391 Bytes
Versions: 243
Compression:
Stored size: 391 Bytes
Contents
'use strict'; var GetIntrinsic = require('get-intrinsic'); var $String = GetIntrinsic('%String%'); var $TypeError = GetIntrinsic('%TypeError%'); // https://262.ecma-international.org/6.0/#sec-tostring module.exports = function ToString(argument) { if (typeof argument === 'symbol') { throw new $TypeError('Cannot convert a Symbol value to a string'); } return $String(argument); };
Version data entries
243 entries across 27 versions & 2 rubygems