(format-currency
x
&
[{:keys [:currency :locale :max-fraction-digits :min-fraction-digits]
:or {locale *default-locale*
max-fraction-digits *default-max-currency-fraction-digits*
min-fraction-digits *default-min-currency-fraction-digits*}}])
(format-number x
&
[{:keys [:locale :max-fraction-digits :min-fraction-digits]
:or {locale *default-locale*
max-fraction-digits
*default-max-number-fraction-digits*}}])
(format-token x
&
[{:keys [:token :locale :max-fraction-digits :min-fraction-digits]
:or {locale *default-locale*
max-fraction-digits *default-max-token-fraction-digits*
min-fraction-digits *default-min-token-fraction-digits*}}])
(pluralize n & [word ending1 ending2 :as opts])
Taken from reagent-utils pluralizes the word based on the number of items (util/pluralize ["John"] "lad") (util/pluralize ["John" "James"] "lad") (util/pluralize ["Alice"] "lad" "y" "ies")
Taken from reagent-utils pluralizes the word based on the number of items (util/pluralize ["John"] "lad") (util/pluralize ["John" "James"] "lad") (util/pluralize ["Alice"] "lad" "y" "ies")
(truncate string length)
(truncate string length suffix)
Truncate a string with suffix (ellipsis by default) if it is longer than specified length.
Truncate a string with suffix (ellipsis by default) if it is longer than specified length.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close