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

Function transformObject

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

Source from the content-addressed store, hash-verified

1312 }
1313
1314 const transformObject = (obj: Record<string, any>): any => {
1315 const newObj: Record<string, any> = {}
1316 for (const key of Object.keys(obj)) {
1317 InternalRecord.assignProperty(newObj, transformer(key), transformValue(obj[key]))
1318 }
1319 return newObj
1320 }
1321
1322 const transformArrayNested = <A extends object>(
1323 rows: ReadonlyArray<A>

Callers 1

transformValueFunction · 0.85

Calls 3

transformerFunction · 0.85
transformValueFunction · 0.85
keysMethod · 0.80

Tested by

no test coverage detected