node_modules/es-abstract/2018/ToNumber.js in immosquare-cleaner-0.1.60 vs node_modules/es-abstract/2018/ToNumber.js in immosquare-cleaner-0.1.61
- old
+ new
@@ -5,11 +5,11 @@
var $TypeError = require('es-errors/type');
var $Number = GetIntrinsic('%Number%');
var $RegExp = GetIntrinsic('%RegExp%');
var $parseInteger = GetIntrinsic('%parseInt%');
-var callBound = require('call-bind/callBound');
+var callBound = require('call-bound');
var regexTester = require('safe-regex-test');
var isPrimitive = require('../helpers/isPrimitive');
var $strSlice = callBound('String.prototype.slice');
var isBinary = regexTester(/^0b[01]+$/i);
@@ -42,7 +42,7 @@
if (trimmed !== value) {
return ToNumber(trimmed);
}
}
- return $Number(value);
+ return +value;
};