decord/source/3722_isValid.js
2026-08-26 06:04:24 +00:00

45 lines
892 B
JavaScript

// Module ID: 3722
// Function ID: 3723
// Name: isValid
// Dependencies: [3723, 3540, 3541]
// Exports: default
// Module 3722 (isValid)
import _typeof from "_typeof" /* 3723 */;
import requiredArgs from "requiredArgs" /* 3541 */;
if (!_typeof) {
let obj = { default: null };
obj[0] = _typeof;
let tmp3 = obj;
} else {
tmp3 = _typeof;
}
_typeof = tmp3;
if (!_typeof) {
obj = { default: null };
obj[0] = _typeof;
let tmp5 = obj;
} else {
tmp5 = _typeof;
}
_typeof = tmp5;
if (!requiredArgs) {
obj = { default: null };
obj[0] = requiredArgs;
let tmp7 = obj;
} else {
tmp7 = requiredArgs;
}
requiredArgs = tmp7;
export default function isValid(num) {
requiredArgs.default(1, arguments);
if (!_typeof.default(num)) {
if (typeof num !== "number") {
return false;
}
}
return !isNaN(Number(_typeof.default(num)));
};
export default exports.default;