Sha256: c8ebca402104dc1e893e1c3416d4a6b46983e36526a70e1993f4572e6d827130
Contents?: true
Size: 432 Bytes
Versions: 62
Compression:
Stored size: 432 Bytes
Contents
'use strict'; var GetIntrinsic = require('get-intrinsic'); var $String = GetIntrinsic('%String%'); var $TypeError = GetIntrinsic('%TypeError%'); var Type = require('./Type'); // https://262.ecma-international.org/9.0/#sec-tostring-applied-to-the-number-type module.exports = function NumberToString(m) { if (Type(m) !== 'Number') { throw new $TypeError('Assertion failed: "m" must be a String'); } return $String(m); };
Version data entries
62 entries across 30 versions & 4 rubygems