MCPcopy
hub / github.com/buildbot/buildbot / getNthOrNull

Method getNthOrNull

www/data-module/src/data/DataCollection.ts:127–132  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

125 }
126
127 getNthOrNull(index: number): DataType | null {
128 if (index >= this.array.length) {
129 return null;
130 }
131 return this.array[index];
132 }
133
134 getByIdOrNull(id: string): DataType | null {
135 return this.byId.get(id) ?? null;

Calls

no outgoing calls

Tested by

no test coverage detected