Initial commit
This commit is contained in:
5
node_modules/validator/es/lib/toFloat.js
generated
vendored
Normal file
5
node_modules/validator/es/lib/toFloat.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import isFloat from './isFloat';
|
||||
export default function toFloat(str) {
|
||||
if (!isFloat(str)) return NaN;
|
||||
return parseFloat(str);
|
||||
}
|
||||
Reference in New Issue
Block a user