In order to reset all the internal state and start from index 0, I would like to have the internal initDeck method exposed, e.g. as a resetDeck method.
I think the following should be enough. Not sure though about any possible side effects here?
resetDeck() {
this.initDeck();
}