Files
discord-decomp/_bundle/Module1172.js
T
2026-11-01 12:12:55 +02:00

26 lines
517 B
JavaScript

// Metro module 1172 (f1173).
export function PrimitiveToString(a0) {
if (a0 === null) {
return "";
}
L13: {
const r4 = typeof a0;
if (r4 !== "string") {
if (r4 === "boolean") {
return a0 == 1 ? "True" : "False";
}
if (r4 !== "number" && r4 !== "bigint") {
if (r4 === "undefined") {
return void 0;
}
if (r4 !== "symbol") {
break L13;
}
return a0.toString();
}
return `${a0}`;
}
}
return a0;
}