Liking cljdoc? Tell your friends :D

applied-science.js-interop

cljsClojureScript

Functions for working with JavaScript that mirror Clojure behaviour.

Functions for working with JavaScript that mirror Clojure behaviour.

apply

Clojure arglists
(apply obj k args)
ClojureScript arglists
(apply obj k arg-array)
source (clj)source (cljs)

assoc!

(assoc! obj & pairs)
cljsClojureScript

Sets key-value pairs on obj, returns obj.

Sets key-value pairs on `obj`, returns `obj`.
source (clj)source (cljs)raw docstring

assoc-in!

Clojure arglists
(assoc-in! obj ks v)
ClojureScript arglists
(assoc-in! obj [k & ks] v)
cljsClojureScript

Mutates the value in a nested object structure, where ks is a sequence of keys and v is the new value. If any levels do not exist, objects will be created.

Mutates the value in a nested object structure, where ks is a
sequence of keys and v is the new value. If any levels do not
exist, objects will be created.
source (clj)source (cljs)raw docstring

assoc-in*

(assoc-in* obj [k* & ks*] v)
source

call

(call obj k & args)
source (clj)source (cljs)

contains?

(contains? obj k)
source

contains?*

ClojureScript arglists
(contains?* obj k*)
source (clj)source (cljs)

empty-obj

source

get

(get obj k)
(get obj k not-found)
cljsClojureScript

Returns the value mapped to key, not-found or nil if key not present.

Returns the value mapped to key, not-found or nil if key not present.
source (clj)source (cljs)raw docstring

get-in

(get-in obj ks)
(get-in obj ks not-found)
cljsClojureScript

Returns the value in a nested object structure, where ks is a sequence of keys. Returns nil if the key is not present, or the not-found value if supplied.

Returns the value in a nested object structure, where ks is
a sequence of keys. Returns nil if the key is not present,
or the not-found value if supplied.
source (clj)source (cljs)raw docstring

get-in*

(get-in* obj ks*)
(get-in* obj ks* not-found)
source

JSLookup

source

lookup

(lookup obj)

Returns object which implements ILookup and reads keys from obj.

Returns object which implements ILookup and reads keys from `obj`.
sourceraw docstring

obj

(obj & keyvals)
cljsClojureScript

Create JavaSript object from an even number arguments representing interleaved keys and values. Dot-prefixed symbol keys will be renamable.

Create JavaSript object from an even number arguments representing
interleaved keys and values. Dot-prefixed symbol keys will be renamable.
source (clj)source (cljs)raw docstring

reflect-property

source

select-keys

(select-keys obj ks)
cljsClojureScript

Returns an object containing only those entries in o whose key is in ks

Returns an object containing only those entries in `o` whose key is in `ks`
source (clj)source (cljs)raw docstring

select-keys*

(select-keys* obj ks*)

Returns an object containing only those entries in o whose key is in ks

Returns an object containing only those entries in `o` whose key is in `ks`
sourceraw docstring

unchecked-get

(unchecked-get obj k)
source (clj)source (cljs)

unchecked-set

Clojure arglists
(unchecked-set obj & pairs)
ClojureScript arglists
(unchecked-set obj k val)
source (clj)source (cljs)

unshift!

(unshift! a v)
source (clj)source (cljs)

update!

(update! obj k f & args)
cljsClojureScript

'Updates' a value in a JavaScript object, where k is a key and f is a function that will take the old value and any supplied args and return the new value, which replaces the old value. If the key does not exist, nil is passed as the old value.

'Updates' a value in a JavaScript object, where k is a key and
f is a function that will take the old value and any supplied
args and return the new value, which replaces the old value.
If the key does not exist, nil is passed as the old value.
source (clj)source (cljs)raw docstring

update-in!

(update-in! obj ks f & args)
cljsClojureScript

'Updates' a value in a nested object structure, where ks is a sequence of keys and f is a function that will take the old value and any supplied args and return the new value, mutating the nested structure. If any levels do not exist, objects will be created.

'Updates' a value in a nested object structure, where ks is a
sequence of keys and f is a function that will take the old value
and any supplied args and return the new value, mutating the
nested structure.  If any levels do not exist, objects will be
created.
source (clj)source (cljs)raw docstring

update-in*

(update-in* obj ks* f args)
source

wrap-key

Clojure arglists
(wrap-key k)
(wrap-key k obj)
ClojureScript arglists
(wrap-key k)
cljClojure

Convert key to string at compile time when possible.

Convert key to string at compile time when possible.
cljsClojureScript

Returns k or, if it is a keyword, its name.

Returns `k` or, if it is a keyword, its name.
source (clj)source (cljs)raw docstring

wrap-keys

(wrap-keys ks)

Fallback to wrapping keys at runtime

Fallback to wrapping keys at runtime
sourceraw docstring

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

× close