Iteracja słownika ts
for (const [key, value] of Object.entries(yourDictionary)) {
console.log(`(${key}, ${value})`);
}
Erezzor
for (const [key, value] of Object.entries(yourDictionary)) {
console.log(`(${key}, ${value})`);
}
Object.keys(dict).forEach(key=> {
console.log(`key:${key}`, `val:${dict[key]}`);
});