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

Function lookup

packages/effect/src/IgnoreFile.ts:210–211  ·  view source on GitHub ↗
(table: Record<string, A>, name: string)

Source from the content-addressed store, hash-verified

208
209// Class names come from user input, so never resolve them through the prototype
210const lookup = <A>(table: Record<string, A>, name: string): A | undefined =>
211 Object.hasOwn(table, name) ? table[name] : undefined
212
213// -----------------------------------------------------------------------------
214// gitignore

Callers 2

parseGitClassFunction · 0.70
parseDockerClassFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected