Version 1
[yaffs-website] / node_modules / core-js / library / modules / _parse-float.js
1 var $parseFloat = require('./_global').parseFloat
2   , $trim       = require('./_string-trim').trim;
3
4 module.exports = 1 / $parseFloat(require('./_string-ws') + '-0') !== -Infinity ? function parseFloat(str){
5   var string = $trim(String(str), 3)
6     , result = $parseFloat(string);
7   return result === 0 && string.charAt(0) == '-' ? -0 : result;
8 } : $parseFloat;