(cljs-env? env)
Take the &env from a macro, and tell whether we are expanding into cljs.
Take the &env from a macro, and tell whether we are expanding into cljs.
(current-time-millis)
Returns current time in epoch milliseonds for closure/script
Returns current time in epoch milliseonds for closure/script
(date->millis date)
Given a date, returns epoch millis if possible.
Given a date, returns epoch millis if possible.
(deep-merge v & vs)
(email? email)
(exception? x)
x-platform, returns true if is an execption
x-platform, returns true if is an execption
(filter-vals pred m)
Filters map k/v pairs dropping any where predicate applied to value is false.
Filters map k/v pairs dropping any where predicate applied to value is false.
(if-cljs then else)
Return then if we are generating cljs code and else for Clojure code. https://groups.google.com/d/msg/clojurescript/iBY5HaQda4A/w1lAQi9_AwsJ
Return then if we are generating cljs code and else for Clojure code. https://groups.google.com/d/msg/clojurescript/iBY5HaQda4A/w1lAQi9_AwsJ
(inclusive-range)
(inclusive-range end)
(inclusive-range start end)
(inclusive-range start end step)
Like range, but includes start/end values.
Like range, but includes start/end values.
(index-of coll value)
(keyword->str k)
Converts a keyword to string. Can safely be called on a string which will return itself.
Converts a keyword to string. Can safely be called on a string which will return itself.
(map-invert m)
(pred-ident? x)
Tests if an predicate identity two-tuple in form of [pred-name-or-id pred-value]
Tests if an predicate identity two-tuple in form of [pred-name-or-id pred-value]
(random-uuid)
(some-of)
(some-of x)
(some-of x & more)
(str->epoch-ms time-str)
Takes time as a string and returns an java.time.Instant.
Takes time as a string and returns an java.time.Instant.
(str->int s)
Converts string to integer. Assumes you've already verified the string is parsable to an integer.
Converts string to integer. Assumes you've already verified the string is parsable to an integer.
(str->keyword s)
Converts a string to a keyword, checking to see if the string starts with a ':', which it strips before converting.
Converts a string to a keyword, checking to see if the string starts with a ':', which it strips before converting.
(subj-ident? x)
Tests if an _id is a numeric or predicate-ident
Tests if an _id is a numeric or predicate-ident
(temp-ident? x)
(trunc s n)
Truncate string s to n characters.
Truncate string s to n characters.
(try* & body)
Like try but supports catch*. catch* is like catch but supports CLJ/CLJS with
less boilerplate. In CLJ it catches Exception
. In CLJS it catches :default
.
Use it like this: (try* ... (catch* err (handle-err err)))
.
Also supports an optional finally clause.
Like try but supports catch*. catch* is like catch but supports CLJ/CLJS with less boilerplate. In CLJ it catches `Exception`. In CLJS it catches `:default`. Use it like this: `(try* ... (catch* err (handle-err err)))`. Also supports an optional finally clause.
(try-catchall & body)
A cross-platform variant of try-catch that catches all exceptions. Does not (yet) support finally, and does not need or want an exception class.
A cross-platform variant of try-catch that catches all exceptions. Does not (yet) support finally, and does not need or want an exception class.
(url-decode string)
(url-decode string encoding)
(url-encode string)
(without-nils m)
Remove all keys from a map that have nil or empty collection values.
Remove all keys from a map that have nil or empty collection values.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close