(<api body)
shortcut for notify/wait-on for api calls
shortcut for notify/wait-on for api calls
(applyThis func thisArg args)
(arrayify x)
makes an array
(j/arrayify 1) => [1]
makes an array (j/arrayify 1) => [1]
(bind func thisArg & [:as arrs])
(callThis func thisArg & [:as arrs])
(catch p onError)
(charAt s idx)
(charCodeAt s idx)
(codePointAt s pos)
(concat seq arr & [:as arrs])
(copyWithin arr target & [start end :as oargs])
(delayed [ms] & body)
constructs a setTimeout function
(notify/wait-on :js (j/delayed [10] (repl/notify 1))) => 1
constructs a setTimeout function (notify/wait-on :js (j/delayed [10] (repl/notify 1))) => 1
(endsWith s match & [pos :as oargs])
(every arr f)
(fill arr value & [start end :as oargs])
(filter arr f)
(finally p onDone)
(find arr f)
(findIndex arr f)
(flat arr & [depth :as oargs])
(flatMap arr f)
(forEach arr f)
(future-delayed [ms] & body)
creates a future delayed call
creates a future delayed call
(genNext gen)
(genReturn gen)
(genThrow gen)
(getBigInt64 dv idx)
(getBigUint64 dv idx)
(getDate func)
(getDay func)
(getFloat32 dv idx)
(getFloat64 dv idx)
(getFullYear func)
(getHours func)
(getInt16 dv idx)
(getInt32 dv idx)
(getMilliseconds func)
(getMinutes func)
(getMonth func)
(getSeconds func)
(getTime func)
(getTimezoneOffset func)
(getUint16 dv idx)
(getUint32 dv idx)
(getUint8 dv idx)
(getUTCDate func)
(getUTCDay func)
(getUTCFullYear func)
(getUTCHours func)
(getUTCMilliseconds func)
(getUTCMinutes func)
(getUTCMonth func)
(getUTCSeconds func)
(getYear func)
(hAdd h key)
(hasOwnProperty obj prop)
(hClear h)
(hGet h key)
(hHas h key)
(hSet h key val)
(import-missing)
generates all depenent imports missing from current namespace
generates all depenent imports missing from current namespace
(import-set-global)
sets all dependent imports to global
sets all dependent imports to global
(includes seq val & [startIdx :as oargs])
(indexOf seq val & [startIdx :as oargs])
(isPrototypeOf obj type)
(join arr & [sep :as oargs])
(lastIndexOf seq val & [fromIdx :as oargs])
(length obj)
(localeCompare s match & [locales opts :as oargs])
(LOG! body)
like xt.lang.base-lib/LOG!
but also for promises
like `xt.lang.base-lib/LOG!` but also for promises
(map arr f)
(match s re)
(matchAll s re)
(module:async module)
wraps an esm import to split out components
wraps an esm import to split out components
(module:demos ns)
(name obj)
(normalize s form)
(padEnd s n & [fill :as oargs])
(padStart s n & [fill :as oargs])
(pop arr)
(postMessage worker value)
post message
((:template @j/postMessage) 'worker [1 2 3]) => '(. worker (postMessage [1 2 3]))
post message ((:template @j/postMessage) 'worker [1 2 3]) => '(. worker (postMessage [1 2 3]))
(propertyIsEnumerable obj prop)
(push arr e & [:as es])
(reduce arr f & [init :as oargs])
(reduceRight arr f & [init :as oargs])
(repeating [ms] & body)
constructs a setInterval function
((:template @j/repeating) [10] '(doSomething)) => '(setInterval (fn [] (new Promise (fn [] (doSomething)))) 10)
constructs a setInterval function ((:template @j/repeating) [10] '(doSomething)) => '(setInterval (fn [] (new Promise (fn [] (doSomething)))) 10)
(replace s match val)
(replaceAll s match val)
(reverse arr)
(search s re)
(setBigInt64 dv idx val)
(setBigUint64 dv idx val)
(setDate func val)
(setFloat32 dv idx val)
(setFloat64 dv idx val)
(setFullYear func val)
(setHours func val)
(setInt16 dv idx val)
(setInt32 dv idx val)
(setInt8 dv idx val)
(setMilliseconds func val)
(setMinutes func val)
(setMonth func val)
(setSeconds func val)
(setTArr tarr arr & [offset :as oargs])
(setTime func val)
(setUint16 dv idx val)
(setUint32 dv idx val)
(setUint8 dv idx val)
(setUTCDate func val)
(setUTCFullYear func val)
(setUTCHours func val)
(setUTCMilliseconds func val)
(setUTCMinutes func val)
(setUTCMonth func val)
(setUTCSeconds func val)
(setYear func val)
(shift arr)
(slice seq & [start end :as oargs])
(some arr f)
(sort arr & [comp :as oargs])
(splice seq start & [count e & [:as es] :as targs])
(split s match & [limit :as oargs])
(STACKTRACE! msg & [tag])
Adds a trace entry with stack infomation
Adds a trace entry with stack infomation
(startsWith s match & [pos :as oargs])
(subarray tarr & [start end :as oargs])
(substr s start & [len :as oargs])
(substring s start & [pos :as oargs])
(then p onSuccess & [onError :as oargs])
(timeout ms)
(toDateString func)
(toExponetial num d)
(toFixed num d)
(toGMTString func)
(toISOString func)
(toJSON func)
(toLocaleDateString func)
(toLocaleFormat func)
(toLocaleLowerCase s locales)
(toLocaleString func)
(toLocaleTimeString func)
(toLocaleUpperCase s locales)
(toLowerCase s)
(toPrecision num d)
(toRadix num radix)
(toString func)
(toTimeString func)
(toUpperCase s)
(toUTCString func)
(trim s)
(trimEnd s)
(trimStart s)
(unshift arr e & [:as es])
(valueOf obj)
(wrap:print f)
wraps a form in a print statement
wraps a form in a print statement
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close