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

Function body

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

Source from the content-addressed store, hash-verified

58}
59
60function body(snake: Snake) {
61 return snake.slice(1);
62}
63
64function newHead(oldHead: BodyPart, dir: Dir): BodyPart {
65 switch (dir) {

Callers 2

getGamObjectAtPosFunction · 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…