MCPcopy
hub / github.com/prisma/prisma / deepGet

Function deepGet

packages/client/src/runtime/utils/deep-set.ts:11–11  ·  view source on GitHub ↗
(o, kp: string[])

Source from the content-addressed store, hash-verified

9// if at any point the value for the current key does not exist,
10// return the default value
11export const deepGet = (o, kp: string[]) => keys(kp).reduce((o, k) => o && o[k], o)
12
13// traverse the set of keys right to left,
14// returning a new object containing both properties from the object

Callers 3

unpackMethod · 0.90
deepGet.test.tsFile · 0.90
deepSetFunction · 0.85

Calls 1

keysFunction · 0.70

Tested by

no test coverage detected