Sha256: 0c8d3e2501cabc643dd5d94ac992812e94353be181a66078808a396f8b6b7921
Contents?: true
Size: 427 Bytes
Versions: 85
Compression:
Stored size: 427 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/11.0/#sec-numeric-types-number-tostring module.exports = function NumberToString(x) { if (Type(x) !== 'Number') { throw new $TypeError('Assertion failed: `x` must be a Number'); } return $String(x); };
Version data entries
85 entries across 30 versions & 4 rubygems