You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
309 B
18 lines
309 B
"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;
|
|
} |