MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / indexOfId

Function indexOfId

packages/sdk/src/engine/variableModel.ts:32–34  ·  view source on GitHub ↗
(arr: VariableDecl[], id: string)

Source from the content-addressed store, hash-verified

30}
31
32function indexOfId(arr: VariableDecl[], id: string): number {
33 return arr.findIndex((v) => typeof v === "object" && v !== null && v.id === id);
34}
35
36/**
37 * Read the current `default` value for a variable id. Returns undefined when

Callers 3

readVariableDefaultFunction · 0.85
writeVariableDefaultFunction · 0.85
clearVariableDefaultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected