Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
40 lines
956 B
JavaScript
40 lines
956 B
JavaScript
// Module ID: 5728
|
|
// Function ID: 5729
|
|
// Dependencies: []
|
|
|
|
// Module 5728
|
|
|
|
export default function isArrayish(str) {
|
|
let tmp = !str;
|
|
if (str) {
|
|
tmp = typeof str === "string";
|
|
}
|
|
let tmp2 = !tmp;
|
|
if (!tmp) {
|
|
const _Array = Array;
|
|
let isArray = str instanceof Array;
|
|
if (!isArray) {
|
|
const _Array2 = Array;
|
|
isArray = Array.isArray(str);
|
|
}
|
|
if (!isArray) {
|
|
let tmp5 = str.length >= 0;
|
|
if (tmp5) {
|
|
const _Function = Function;
|
|
let tmp6 = str.splice instanceof Function;
|
|
if (!tmp6) {
|
|
const _Object = Object;
|
|
let ownPropertyDescriptor = Object.getOwnPropertyDescriptor(str, str.length - 1);
|
|
if (ownPropertyDescriptor) {
|
|
ownPropertyDescriptor = "String" !== str.constructor.name;
|
|
}
|
|
tmp6 = ownPropertyDescriptor;
|
|
}
|
|
tmp5 = tmp6;
|
|
}
|
|
isArray = tmp5;
|
|
}
|
|
tmp2 = isArray;
|
|
}
|
|
return tmp2;
|
|
};
|