Player Index

Returns a number describing the current index of the player.

Syntax

function getPlayerIndex(state) {
  return state.player.index;
}