JS proxy provides an alternative way to use Clojurescript immutable data structures with a JSON interface. This can be used as an alternative to clj->js, check the documentation for details about the tradeoffs.
JS proxy provides an alternative way to use Clojurescript immutable data structures with a JSON interface. This can be used as an alternative to clj->js, check the documentation for details about the tradeoffs.
(array-push res)
(array-push res x)
Wrapping on JS .push, arity design for compatibility with transducer usage.
Wrapping on JS .push, arity design for compatibility with transducer usage.
(cached-keyword s)
Like keyword, but will cache the string for faster lookup after first usage.
Using the cache read gets about 4x faster than converting. Considering that the keywords in an application tend to be consistent, this I think this cache will get hit enough to worth the memory cost.
Like keyword, but will cache the string for faster lookup after first usage. Using the cache read gets about 4x faster than converting. Considering that the keywords in an application tend to be consistent, this I think this cache will get hit enough to worth the memory cost.
(into-js-array xform from)
Its the into-array fn with add support for transducers.
Its the into-array fn with add support for transducers.
(js-proxy x)
Proxy some Map Type from Clojurescript via JSON proxy API.
Proxy some Map Type from Clojurescript via JSON proxy API.
(map-proxy m)
Creates a JS proxy to wrap a Clojurescript immutable map like data type.
Creates a JS proxy to wrap a Clojurescript immutable map like data type.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close