improved API request wrapper, partial completion of operations

This commit is contained in:
2025-03-13 15:15:43 -07:00
parent 7eec2adc7a
commit 17e0480f83
16 changed files with 320 additions and 282 deletions

View File

@@ -1,8 +1,5 @@
/** Stringifies only values of a JSON object, including nested ones */
export const getNestedValuesString = (
obj: any,
delimiter: string = ", "
): string => {
const getNestedValuesString = (obj: any, delimiter: string = ", "): string => {
let values: string[] = [];
for (const key in obj) {
if (typeof obj[key] !== "object") {
@@ -14,3 +11,5 @@ export const getNestedValuesString = (
return values.join(delimiter);
};
export { getNestedValuesString };