exactly what I was looking for. Thanks Mike! On Tuesday, January 12, 2016 at 2:25:46 PM UTC-5, Mike Fikes wrote: > js/String > > Note: > > (identical? js/String (type "”)) => true > > Here is an example in a REPL: > > cljs.user=> (defmulti position (fn [element x y z] (type element))) > #'cljs.user/position > cljs.user=> (defmethod position js/String [element x y z] z) > #object[cljs.core.MultiFn] > cljs.user=> (defmethod position js/Number [element x y z] x) > #object[cljs.core.MultiFn] > cljs.user=> (position "a" 1 2 3) > 3 > cljs.user=> (position 42 1 2 3) > 1
-- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/clojurescript.
