MCPcopy Index your code
hub / github.com/JavaCS3/xterm-player / get

Method get

src/Utils.ts:15–18  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

13 if (_end > _arr.length) { this._end = _arr.length }
14 }
15 public get(index: number): T {
16 if (index < 0 || index >= this.len()) { throw new Error('Index out of range') }
17 return this._arr[index + this._start]
18 }
19 public len(): number { return this._end - this._start }
20}
21

Callers 8

constructorMethod · 0.95
Utils.test.tsFile · 0.80
constructorMethod · 0.80
dataMethod · 0.80
snapshotMethod · 0.80
bundle.min.jsFile · 0.80
BFunction · 0.80
MFunction · 0.80

Calls 1

lenMethod · 0.95

Tested by

no test coverage detected