Ignore:
Timestamp:
01/21/25 03:08:24 (3 days ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
0c6b92a
Message:

F4 Finalna Verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/es-abstract/5/ToNumber.js

    r0c6b92a r79a0317  
    33var ToPrimitive = require('./ToPrimitive');
    44
    5 var callBound = require('call-bind/callBound');
     5var callBound = require('call-bound');
    66
    77var $replace = callBound('String.prototype.replace');
     
    1111var isNonDecimal = safeRegexTester(/^0[ob]|^[+-]0x/);
    1212
     13var $Number = Number;
     14
    1315// http://262.ecma-international.org/5.1/#sec-9.3
    1416
    1517module.exports = function ToNumber(value) {
    16         var prim = ToPrimitive(value, Number);
     18        var prim = ToPrimitive(value, $Number);
    1719        if (typeof prim !== 'string') {
    18                 return +prim; // eslint-disable-line no-implicit-coercion
     20                return $Number(prim);
    1921        }
    2022
     
    2931        }
    3032
    31         return +trimmed; // eslint-disable-line no-implicit-coercion
     33        return +trimmed;
    3234};
Note: See TracChangeset for help on using the changeset viewer.