mirror of
https://github.com/unraid/api.git
synced 2026-01-03 23:19:54 -06:00
2 lines
221 B
TypeScript
2 lines
221 B
TypeScript
/** Output key + value as string for each item in the object. Adds new line after each item. */
|
|
export const OBJ_TO_STR = (obj: object): string => Object.entries(obj).reduce((str, [p, val]) => `${str}${p}: ${val}\n`, ''); |