MCPcopy
hub / github.com/statelyai/xstate / find

Function find

examples/snake-react/src/snakeMachine.ts:52–54  ·  view source on GitHub ↗
(points: T[], p: Point)

Source from the content-addressed store, hash-verified

50}
51
52function find<T extends Point>(points: T[], p: Point) {
53 return points.find((pp) => isSamePos(pp, p));
54}
55
56function head(snake: Snake) {
57 return snake[0];

Callers 3

getGamObjectAtPosFunction · 0.85
newAppleFunction · 0.85
snakeMachine.tsFile · 0.85

Calls 1

isSamePosFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…