Answers for "typescript iterate values of a object"

3

object iteration in typescript

Object.entries(obj).forEach(
  ([key, value]) => console.log(key, value);
);
Posted by: Guest on July-21-2020
4

loop an object properties in ts

Object.keys(obj).forEach(e => console.log(`key=${e}  value=${obj[e]}`));
Posted by: Guest on May-14-2020

Code answers related to "typescript iterate values of a object"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language