Let's say I have an object like this:
var myObject = {
   X:1,
   Y:2,
   Z:3
}
Let's say I want to create a for loop to process each property on the object. The code below is just intended to be some pseudocode to communicate what I'm looking to do:
var properties = myObject.split();
for(var i = 0; i < properties.length; i++)
{
   var x = properties[i][key];
   var y = properties[i][value]
}
Can you recommend some code I can use to accomplish this in Javascript/TypeScript?
 
     
     
     
     
    