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

Function head

examples/snake-react/src/snakeMachine.ts:56–58  ·  view source on GitHub ↗
(snake: Snake)

Source from the content-addressed store, hash-verified

54}
55
56function head(snake: Snake) {
57 return snake[0];
58}
59
60function body(snake: Snake) {
61 return snake.slice(1);

Callers 3

getGamObjectAtPosFunction · 0.85
moveSnakeFunction · 0.85
snakeMachine.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…