MCPcopy
hub / github.com/tensorflow/tfjs / get

Method get

tfjs-data/src/util/ring_buffer.ts:58–63  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

56 }
57
58 protected get(index: number) {
59 if (index < 0) {
60 throw new RangeError('Can\'t get item at a negative index.');
61 }
62 return this.data[index % this.capacity];
63 }
64
65 protected set(index: number, value: T) {
66 if (index < 0) {

Callers 15

popMethod · 0.95
shiftMethod · 0.95
shuffleExciseMethod · 0.95
iteratorMethod · 0.45
createMethod · 0.45
createMethod · 0.45
constructorMethod · 0.45
pumpMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected