Use explanatory variables Bad: declare const users: Map<string, User>; for (const keyValue of users) { // iterate through users map } Good: declare const users: Map<string, User>; for (const [id, user] of users) { // iterate through users map }