(capitalize-words s)
Capitalize every word in a string
Capitalize every word in a string
(deep-merge db m)
Like merge, but merges maps recursively
Like merge, but merges maps recursively
(deep-merge-with f & maps)
Like merge-with, but merges maps recursively, applying the given fn only when there's a non-map at a particular level. (deepmerge + {:a {:b {:c 1 :d {:x 1 :y 2}} :e 3} :f 4} {:a {:b {:c 2 :d {:z 9} :z 3} :e 100}}) -> {:a {:b {:z 3, :c 3, :d {:z 9, :x 1, :y 2}}, :e 103}, :f 4}
Like merge-with, but merges maps recursively, applying the given fn only when there's a non-map at a particular level. (deepmerge + {:a {:b {:c 1 :d {:x 1 :y 2}} :e 3} :f 4} {:a {:b {:c 2 :d {:z 9} :z 3} :e 100}}) -> {:a {:b {:z 3, :c 3, :d {:z 9, :x 1, :y 2}}, :e 103}, :f 4}
(el-by-id id)
(flatv & args)
(id-num id-str)
Extracts the integer part of a string. Useful for SEO-friendly urls that combine text with an id.
Extracts the integer part of a string. Useful for SEO-friendly urls that combine text with an id.
(kebab s)
(kw-str kw)
Turn a keyword into a capitalized string
Turn a keyword into a capitalized string
(now)
(path scalar-or-vec)
(pluralize s n)
(prevent-default f)
(scroll-top)
(set-toggle s val)
Toggle val
's membership in set s
Toggle `val`'s membership in set `s`
(slugify txt & [seg-count])
(strk key & args)
Create a new keyword by appending strings to it
Create a new keyword by appending strings to it
(toggle v x y)
(tv e)
(update-vals x update-map)
Takes a map to be updated, x, and a map of {[k1 k2 k3] update-fn-1 [k4 k5 k6] update-fn-2} such that such that k1, k2, k3 are updated using update-fn-1 and k4, k5, k6 are updated using update-fn-2
Takes a map to be updated, x, and a map of {[k1 k2 k3] update-fn-1 [k4 k5 k6] update-fn-2} such that such that k1, k2, k3 are updated using update-fn-1 and k4, k5, k6 are updated using update-fn-2
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close