MCPcopy Create free account
hub / github.com/microsoft/SandDance / getDataByName

Function getDataByName

packages/sanddance-specs/src/scope.ts:56–60  ·  view source on GitHub ↗
(data: Data[], dataName: string)

Source from the content-addressed store, hash-verified

54}
55
56export function getDataByName(data: Data[], dataName: string) {
57 for (let i = 0; i < data.length; i++) {
58 if (data[i].name === dataName) return { data: data[i], index: i };
59 }
60}
61
62export function getGroupBy(groupings: Grouping[]) {
63 const groupby = groupings.map(g => g.groupby);

Callers 1

constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected