I have a Map that contains keys and their value. I want to convert all keyvalues into an array
const gameEvents = new Map([
[17, 'β½ GOAL'],
[36, 'π Substitution'],
[47, 'β½ GOAL'],
[61, 'π Substitution'],
[64, 'πΆ Yellow card'],
[69, 'π΄ Red card'],
[70, 'π Substitution'],
[72, 'π Substitution'],
[76, 'β½ GOAL'],
[80, 'β½ GOAL'],
[92, 'πΆ Yellow card'],
]);
I want that my new array should look like this
['β½ GOAL','π Substitution','β½ GOAL' ,'π Substitution', 'πΆ Yellow card', 'π΄ Red card', 'π Substitution','π Substitution',, 'β½ GOAL', 'β½ GOAL', 'πΆ Yellow card']