This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-07-19
Channels
- # babashka (39)
- # beginners (58)
- # calva (45)
- # clerk (9)
- # cljsrn (10)
- # clojure (23)
- # clojure-denver (13)
- # clojure-europe (39)
- # clojure-norway (6)
- # clojurescript (10)
- # clr (3)
- # cursive (5)
- # data-science (6)
- # datomic (27)
- # events (1)
- # fulcro (33)
- # graphql (5)
- # hyperfiddle (24)
- # introduce-yourself (4)
- # kaocha (1)
- # malli (8)
- # off-topic (23)
- # pedestal (5)
- # re-frame (2)
- # releases (4)
- # shadow-cljs (8)
- # xtdb (12)
What's the proper way to translate the "?" in clojurescript?
parent.document.getElementById(slot)?.childElementCount
Am I suppose to use (when-not (empty? %))
Seems like it doesn't work that way because of the chainingWhat is supposed to follow some->? I tried % but it doesn't work
Is the following also fine?
(-> js/document
(some->
(.getElementById slot)
(.childElementCount)
))
Where could I learn more about this? I'm not sure I understand (some-> parent .-document (.getElementById slot) .-childElementCount)
. Are dashes used to mention what some-> is for?