Iterating Object Properties

Overview

Often times it is necessary to iterate through all the properties on an object. This can be accomplished in a for in loop. (notice that this is "for in" and not "for of")
Iterating Object Properties
let obj = { name:'test', size:20 }; for(let key in obj){ let value = obj[key]; }