js-keys

functionsince v0.0-927Edit
(js-keys obj)

Details:

Returns the keys for the JavaScript object obj.


Examples:

(js-keys #js {:foo 1 :bar 2})
;;=> #js ["foo" "bar"]

See Also:


Source docstring:
Return the JavaScript keys for an object.
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn js-keys
  [obj]
  (gobject/getKeys obj))