MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / toObject

Function toObject

packages/common/src/object.ts:69–77  ·  view source on GitHub ↗
(
  obj: Record<string, string | undefined>,
)

Source from the content-addressed store, hash-verified

67}
68
69export function toObject(
70 obj: Record<string, string | undefined>,
71): Record<string, unknown> {
72 let result: Record<string, unknown> = {};
73 Object.entries(obj).forEach(([key, value]) => {
74 result = assocPath(key.split('.'), value, result);
75 });
76 return result;
77}
78
79export const strip = reject(anyPass([isEmpty, isNil]));
80

Callers 1

transformProfileFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected