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
|
|
|
|
2026-08-04 21:03:28 +00:00
|
|
|
export default function isLength(num) {
|
|
|
|
|
let tmp = typeof num === "number";
|
|
|
|
|
if (typeof num === "number") {
|
|
|
|
|
tmp = num > -1;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (tmp) {
|
2026-08-04 21:03:28 +00:00
|
|
|
tmp = num % 1 === 0;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (tmp) {
|
2026-08-04 21:03:28 +00:00
|
|
|
tmp = num <= 9007199254740991;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
};
|