in packages/sqrl/src/function/StringFunctions.ts [14:29]
function repr(value) {
if (value === null) {
return "null";
} else if (Array.isArray(value)) {
return "[" + value.map(repr).join(",") + "]";
} else if (typeof value === "object") {
return "[object]";
} else if (typeof value === "undefined") {
// @todo: We should ensure this doesn't happen, but log the string to reduce confusion
return "[undefined]";
} else if (typeof value === "boolean" || typeof value === "number") {
return value.toString();
} else {
return JSON.stringify(value.toString());
}
},