decord/source/4401_isString.js

35 lines
846 B
JavaScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 4401
// Function ID: 4402
2026-07-29 08:29:29 +00:00
// Name: isString
2026-08-11 06:20:06 +00:00
// Dependencies: [574, 1412]
2026-07-29 08:29:29 +00:00
2026-08-15 05:55:55 +00:00
// Module 4401 (isString)
2026-07-29 08:29:29 +00:00
let closure_0 = require("callBoundIntrinsic")("String.prototype.valueOf");
let closure_1 = require("callBoundIntrinsic")("Object.prototype.toString");
let closure_2 = require("hasToStringTagShams")();
2026-08-04 21:03:28 +00:00
export default function isString(str) {
let tmp = typeof str === "string";
if (typeof str !== "string") {
let tmp2 = !str;
if (str) {
tmp2 = typeof str !== "object";
2026-07-29 08:29:29 +00:00
}
if (tmp2) {
tmp = !tmp2;
} else if (closure_2) {
let tmp5 = (function tryStringObject(arg0) {
try {
callback(arg0);
return true;
} catch (err) {
return false;
}
2026-08-04 21:03:28 +00:00
})(str);
2026-07-29 08:29:29 +00:00
} else {
2026-08-04 21:03:28 +00:00
tmp5 = "[object String]" === callback(str);
2026-07-29 08:29:29 +00:00
}
}
return tmp;
};