first
This commit is contained in:
18
node_modules/vant/lib/utils/validate/number.js
generated
vendored
Normal file
18
node_modules/vant/lib/utils/validate/number.js
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.isNumeric = isNumeric;
|
||||
exports.isNaN = isNaN;
|
||||
|
||||
function isNumeric(val) {
|
||||
return /^\d+(\.\d+)?$/.test(val);
|
||||
}
|
||||
|
||||
function isNaN(val) {
|
||||
if (Number.isNaN) {
|
||||
return Number.isNaN(val);
|
||||
} // eslint-disable-next-line no-self-compare
|
||||
|
||||
|
||||
return val !== val;
|
||||
}
|
Reference in New Issue
Block a user