Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
35 lines
629 B
JavaScript
35 lines
629 B
JavaScript
// Module ID: 543
|
|
// Function ID: 544
|
|
// Dependencies: []
|
|
|
|
// Module 543
|
|
const re0 = /^(?:0|[1-9]\d*)$/;
|
|
|
|
export default function isIndex(num, arg1) {
|
|
num = 9007199254740991;
|
|
if (null != arg1) {
|
|
num = arg1;
|
|
}
|
|
let tmp = num;
|
|
if (tmp) {
|
|
let tmp2 = typeof num === "number";
|
|
if (typeof num !== "number") {
|
|
let isMatch = typeof num !== "symbol";
|
|
if (typeof num !== "symbol") {
|
|
isMatch = re0.test(num);
|
|
}
|
|
tmp2 = isMatch;
|
|
}
|
|
tmp = tmp2;
|
|
}
|
|
if (tmp) {
|
|
tmp = num > -1;
|
|
}
|
|
if (tmp) {
|
|
tmp = num % 1 === 0;
|
|
}
|
|
if (tmp) {
|
|
tmp = num < num;
|
|
}
|
|
return tmp;
|
|
};
|