TypeScript for in loop
The for in loop is used to iterate the properties of an object. Syntax: for(property in object){ //Block of statements } TypeScript for in loop example: var person = {Fname:”Rajeev”, Lname:”Johari”, Age:40}; var perproperty; for (perproperty in person) { console.log(perproperty + “: ” + person[perproperty ]); }