Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

19 linhas
396 B

  1. 'use strict';
  2. var GetIntrinsic = require('../GetIntrinsic');
  3. var $String = GetIntrinsic('%String%');
  4. var Type = require('./Type');
  5. // https://www.ecma-international.org/ecma-262/9.0/#sec-tostring-applied-to-the-number-type
  6. module.exports = function NumberToString(m) {
  7. if (Type(m) !== 'Number') {
  8. throw new TypeError('Assertion failed: "m" must be a String');
  9. }
  10. return $String(m);
  11. };