Version 1
[yaffs-website] / node_modules / core-js / modules / _parse-float.js
diff --git a/node_modules/core-js/modules/_parse-float.js b/node_modules/core-js/modules/_parse-float.js
new file mode 100644 (file)
index 0000000..3d0e653
--- /dev/null
@@ -0,0 +1,8 @@
+var $parseFloat = require('./_global').parseFloat
+  , $trim       = require('./_string-trim').trim;
+
+module.exports = 1 / $parseFloat(require('./_string-ws') + '-0') !== -Infinity ? function parseFloat(str){
+  var string = $trim(String(str), 3)
+    , result = $parseFloat(string);
+  return result === 0 && string.charAt(0) == '-' ? -0 : result;
+} : $parseFloat;
\ No newline at end of file