Closed atroche closed 9 years ago
Take a look at dommy.utils/->Array
. This returns a JS array object, so there are some operations for which you may still have to use js->clj
:
(-> my-children-node u/->Array sequential?) ;; => false
(-> my-children-node u/->Array js->clj sequential?) ;; => true
dommy aims to be a thin DOM API in this regard by always returning native objects, where applicable. I would suggest using (alength (children (dommy/sel1 :body)))
Hey guys,
Currently
(count (children (dommy/sel1 :body)))
throws[object HTMLCollection] is not ISeqable
. Is there an easy way to make it so that it is ISeqable?Cheers!