MCPcopy Index your code
hub / github.com/Shopify/flash-list / getNextIndex

Method getNextIndex

src/utils/AverageWindow.ts:45–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 }
44
45 private getNextIndex(): number {
46 // starts from 0 once we reach end of the array
47 const newTarget = this.nextIndex;
48 this.nextIndex = (this.nextIndex + 1) % this.inputValues.length;
49 return newTarget;
50 }
51}
52
53export class MultiTypeAverageWindow {

Callers 1

addValueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected