blob: 96adafd515a457f8aa2b8c237722502ce3ea0f31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = toFloat;
var _isFloat = _interopRequireDefault(require("./isFloat"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function toFloat(str) {
if (!(0, _isFloat.default)(str)) return NaN;
return parseFloat(str);
}
module.exports = exports.default;
module.exports.default = exports.default;
|