How can I convert this function (into Clojurescript) that takes a JavaScript object and pushes it's contents into an array.
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]
????
)