I have some codes:
const moves = history.map((step, move) => { const desc = move ? \'Go to move #\' + move : \'Go to game start\';