MCPcopy Create free account
hub / github.com/algorithm-visualizer/algorithm-visualizer / isValidCursor

Function isValidCursor

src/components/Player/index.js:97–100  ·  view source on GitHub ↗
(cursor)

Source from the content-addressed store, hash-verified

95 }
96
97 isValidCursor(cursor) {
98 const { chunks } = this.props.player;
99 return 1 <= cursor && cursor <= chunks.length;
100 }
101
102 prev() {
103 this.pause();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected