mirror of
https://github.com/20kaushik02/spotify-manager.git
synced 2026-01-25 06:04:05 +00:00
improved API request wrapper, partial completion of operations
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user