Liking cljdoc? Tell your friends :D

sweet-tooth.frontend.core.utils


capitalize-wordsclj/s

(capitalize-words s)

Capitalize every word in a string

Capitalize every word in a string
raw docstring

deep-mergeclj/s

(deep-merge db m)

Like merge, but merges maps recursively

Like merge, but merges maps recursively
raw docstring

deep-merge-withclj/s

(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}
raw docstring

dissoc-inclj/s

(dissoc-in m p)

Remove value in m at p

Remove value in `m` at `p`
raw docstring

el-by-idcljs

(el-by-id id)

flatvclj/s

(flatv & args)

id-numclj/s

(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.
raw docstring

kebabclj/s

(kebab s)

kw-strclj/s

(kw-str kw)

Turn a keyword into a capitalized string

Turn a keyword into a capitalized string
raw docstring

nowclj/s

(now)

pathclj/s

(path scalar-or-vec)

pluralizeclj/s

(pluralize s n)

prevent-defaultcljs

(prevent-default f)

scroll-topcljs

(scroll-top)

set-toggleclj/s

(set-toggle s val)

Toggle val's membership in set s

Toggle `val`'s membership in set `s`
raw docstring

slugifyclj/s

(slugify txt & [seg-count])

strkclj/s

(strk key & args)

Create a new keyword by appending strings to it

Create a new keyword by appending strings to it
raw docstring

toggleclj/s

(toggle v x y)

tvclj/s

(tv e)

update-valsclj/s

(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
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close