Skip to content

five-on-it / apps/client/src/ui/studio/missions / moveMission

Function: moveMission() ​

moveMission(game, index, by): object

Defined in: apps/client/src/ui/studio/missions.ts:106

A game with a mission moved up (−1) or down (+1) its list; the index it lands at.

Parameters ​

game ​

GameJson

index ​

number

by ​

-1 | 1

Returns ​

object

game ​

game: GameJson

index ​

index: number