I dont really get what you mean by Deck.
Deck as the pile of cards you can draw in a game?
or Deck as the whole collection of cards you managed to get?
anyway, both are the same answers. u need to create an array of the cards.
const ALL_GAME_CARDS = [card1, card2, card3,]
var myCollection = [card1, card3]
var myCollection = [card1, card2]
var inGameDeck = [card1, card2]
var gameHand = [card1]
gameHand.append(inGameDeck) #this would add "card2" to your game hand
I dont know if i could help, either i am an expert.
But this is how i would do it