MCPcopy Create free account
hub / github.com/effect-app/libs / replace

Method replace

repos/effect/packages/effect/src/Optic.ts:1192–1194  ·  view source on GitHub ↗
(a: A, _: S)

Source from the content-addressed store, hash-verified

1190 const proto = Object.getPrototypeOf(pojo)
1191 if (proto !== Object.prototype && proto !== null) {
1192 throw new Error("Cannot clone object with non-Object constructor or null prototype")
1193 }
1194 return { ...pojo } as T
1195 }
1196 return pojo
1197}

Callers 15

sql-store.test.tsFile · 0.45
writeLockFunction · 0.45
replaceExecFunction · 0.45
getHeadersFunction · 0.45
verifyTokenFunction · 0.45
StoreMakerLayerFunction · 0.45
Cosmos.tsFile · 0.45
Pg.tsFile · 0.45
buildWhereSQLQueryFunction · 0.45
makeFakeEmailFunction · 0.45
utils.tsFile · 0.45
extract.tsFile · 0.45

Calls 1

setMethod · 0.65

Tested by 5

mockTranslateFunction · 0.36
germanTransFunction · 0.36
normalizeSqlFunction · 0.36
unquoteFunction · 0.36
mapperFunction · 0.36