Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

foreach on dictionary in typescript

Object.keys(dict).forEach(key=> {
  console.log(`key:${key}`, `val:${dict[key]}`);
});
Source by discourse.aurelia.io #
 
PREVIOUS NEXT
Tagged: #foreach #dictionary #typescript
ADD COMMENT
Topic
Name
9+3 =