decord/source/604_isLength.js
2026-08-04 21:03:28 +00:00

20 lines
348 B
JavaScript

// Module ID: 604
// Function ID: 605
// Name: isLength
// Dependencies: []
// Module 604 (isLength)
export default function isLength(num) {
let tmp = typeof num === "number";
if (typeof num === "number") {
tmp = num > -1;
}
if (tmp) {
tmp = num % 1 === 0;
}
if (tmp) {
tmp = num <= 9007199254740991;
}
return tmp;
};