title: How to loop a JavaScript object and push each into an array, in Clojurescript
body: <p>How can I convert this function (into Clojurescript) that takes a JavaScript object and pushes it's contents into an array.</p>
  
  <pre><code>function toKeyValueList(obj) {
    var arr = [];
  
    for (var key in obj) {
      if (obj.hasOwnProperty(key)) {
        arr.push({
          key: key,
          value: obj[key]
        });
      }
    }
  
    return arr;
  } 
  
  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;    
  
  (defn toKeyValueList [obj]
    ????
  )
  </code></pre>