MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / identityFunction

Function identityFunction

app/src/utils/utils.test.ts:11–11  ·  view source on GitHub ↗
(input: T)

Source from the content-addressed store, hash-verified

9 assertType<number | null>(square(Math.random() > 0.1 ? 1 : null));
10
11 const identityFunction = <T>(input: T): T => input;
12
13 assertType<null>(passThroughNulls(identityFunction)(null));
14

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected