20 lines
348 B
JavaScript
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;
|
|
};
|