MCPcopy Create free account
hub / github.com/Effect-TS/effect / transformObject

Function transformObject

packages/effect/src/unstable/sql/Statement.ts:1153–1159  ·  view source on GitHub ↗
(obj: Record<string, any>)

Source from the content-addressed store, hash-verified

1151 }
1152
1153 const transformObject = (obj: Record<string, any>): any => {
1154 const newObj: Record<string, any> = {}
1155 for (const key of Object.keys(obj)) {
1156 InternalRecord.assignProperty(newObj, transformer(key), transformValue(obj[key]))
1157 }
1158 return newObj
1159 }
1160
1161 const transformArrayNested = <A extends object>(
1162 rows: ReadonlyArray<A>

Callers 1

transformValueFunction · 0.85

Calls 2

transformerFunction · 0.85
transformValueFunction · 0.85

Tested by

no test coverage detected