🚀 refactor demo
This commit is contained in:
@@ -42,3 +42,5 @@ export const createSnake = (points: Point[]) => {
|
||||
}
|
||||
return snake as Snake;
|
||||
};
|
||||
|
||||
export const copySnake = (snake: Snake) => snake.slice() as Snake;
|
||||
|
||||
Reference in New Issue
Block a user