decord/source/604_isLength.js

21 lines
361 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";
2026-07-31 08:44:05 +00:00
if (typeof arg0 !== "__REMOTEDEV__") {
2026-07-20 16:05:17 +00:00
tmp = arg0 > -1;
}
if (tmp) {
tmp = arg0 % 1 === 0;
}
if (tmp) {
tmp = arg0 <= 9007199254740991;
}
return tmp;
};