Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
36 lines
890 B
JavaScript
36 lines
890 B
JavaScript
// Module ID: 4895
|
|
// Function ID: 4896
|
|
// Dependencies: [1316, 1444]
|
|
|
|
// Module 4895
|
|
import callBoundIntrinsic from "callBoundIntrinsic" /* 1316 */;
|
|
import _mod1444 from "module_1444" /* 1444 */;
|
|
|
|
let closure_0 = callBoundIntrinsic("String.prototype.valueOf");
|
|
let closure_1 = callBoundIntrinsic("Object.prototype.toString");
|
|
let closure_2 = _mod1444();
|
|
|
|
export default function isString(str) {
|
|
let tmp = typeof str === "string";
|
|
if (typeof str !== "string") {
|
|
let tmp2 = !str;
|
|
if (str) {
|
|
tmp2 = typeof str !== "object";
|
|
}
|
|
if (tmp2) {
|
|
tmp = !tmp2;
|
|
} else if (closure_2) {
|
|
let tmp5 = (function tryStringObject(arg0) {
|
|
try {
|
|
closure_1_0(arg0);
|
|
return true;
|
|
} catch (err) {
|
|
return false;
|
|
}
|
|
})(str);
|
|
} else {
|
|
tmp5 = "[object String]" === closure_1(str);
|
|
}
|
|
}
|
|
return tmp;
|
|
};
|