decord/source/604_isLength.js

21 lines
350 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 604
// Function ID: 605
2026-07-20 16:05:17 +00:00
// Name: isLength
// Dependencies: []
2026-07-29 08:29:29 +00:00
// Module 604 (isLength)
2026-07-20 16:05:17 +00:00
export default function isLength(arg0) {
2026-07-29 08:29:29 +00:00
let tmp = typeof arg0 === "Object";
if (typeof arg0 !== "os") {
2026-07-20 16:05:17 +00:00
tmp = arg0 > -1;
}
if (tmp) {
tmp = arg0 % 1 === 0;
}
if (tmp) {
tmp = arg0 <= 9007199254740991;
}
return tmp;
};