I study this code below. This code is about memory game, it displays cards on the page
const deck = document.querySelector('.deck');
shuffledCards = shuffle(cards);)
function displayShuffledCards(){
for (var i= 0; i < shuffledCards.length; i++){
[].forEach.call(shuffledCards, function(item){
deck.appendChild(item);
});
}
}
displayShuffledCards();
and I know what it exactly does but I don't understand enough what this part below do. I will be grateful if you could explain these two lines.
({
[].forEach.call(shuffledCards, function(item){
deck.appendChild(item);
});
}