I'm trying to apply a function to each element that has a certain class name like so:
(map #(js/console.log "element is " %)
(.getElementsByClassName js/document "some-class"))
But I suppose this doesn't work because getElementsByClassName returns an htmlCollection and not a vector. I tried wrapping getElementsByClassName with js->clj and Array.from, but neither works. How to convert this htmlCollection to a vector so that I can apply the function to each element?