mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 02:51:06 +03:30
9 lines
359 B
JavaScript
Vendored
9 lines
359 B
JavaScript
Vendored
var $parseFloat = require('./_global').parseFloat;
|
|
var $trim = require('./_string-trim').trim;
|
|
|
|
module.exports = 1 / $parseFloat(require('./_string-ws') + '-0') !== -Infinity ? function parseFloat(str) {
|
|
var string = $trim(String(str), 3);
|
|
var result = $parseFloat(string);
|
|
return result === 0 && string.charAt(0) == '-' ? -0 : result;
|
|
} : $parseFloat;
|