title: how to split a js object into an array of key-value pairs?
body: <p>Let's say I have an object like this:</p>
  
  <pre><code>var myObject = {
     X:1,
     Y:2,
     Z:3
  }
  </code></pre>
  
  <p>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:</p>
  
  <pre><code>var properties = myObject.split();
  for(var i = 0; i &lt; properties.length; i++)
  {
     var x = properties[i][key];
     var y = properties[i][value]
  }
  </code></pre>
  
  <p>Can you recommend some code I can use to accomplish this in Javascript/TypeScript?</p>