decord/source/3562_isValid.js

46 lines
871 B
JavaScript
Raw Normal View History

2026-08-07 06:50:47 +00:00
// Module ID: 3562
// Function ID: 3563
2026-07-29 08:29:29 +00:00
// Name: isValid
2026-08-07 06:50:47 +00:00
// Dependencies: [3563, 3380, 3381]
2026-07-29 08:29:29 +00:00
// Exports: default
2026-08-07 06:50:47 +00:00
// Module 3562 (isValid)
2026-07-29 08:29:29 +00:00
import _typeof from "_typeof";
import _typeof from "_typeof";
import requiredArgs from "requiredArgs";
if (!_typeof) {
let obj = { default: null };
obj[0] = _typeof;
let tmp3 = obj;
} else {
tmp3 = _typeof;
}
let c0 = tmp3;
if (!_typeof) {
obj = { default: null };
obj[0] = _typeof;
let tmp5 = obj;
} else {
tmp5 = _typeof;
}
let closure_1 = tmp5;
if (!requiredArgs) {
obj = { default: null };
obj[0] = requiredArgs;
let tmp7 = obj;
} else {
tmp7 = requiredArgs;
}
2026-08-04 21:03:28 +00:00
export default function isValid(num) {
2026-07-29 08:29:29 +00:00
tmp7.default(1, arguments);
2026-08-04 21:03:28 +00:00
if (!tmp3.default(num)) {
if (typeof num !== "number") {
2026-07-29 08:29:29 +00:00
return false;
}
}
2026-08-04 21:03:28 +00:00
return !isNaN(Number(tmp5.default(num)));
2026-07-29 08:29:29 +00:00
};
export default exports.default;