0
Tengo una duda sobre el entries()
let map = new Map([['k1', 'v1'], ['k2', 'v2']]); for (let kv of map.entries()){ for (let ki of kv.entries()){ console.log(ki); } } Este ejemplo no deberĂa mostrar en la consola todos los valores de map. ÂżDonde estoy errado?
1 Answer
0
David GuĂ©dez , I think you don't need in the second for loop "entries()" to show all the values. Look at the code đ±
https://code.sololearn.com/WiMcZoiHVrKs/?ref=app