Liking cljdoc? Tell your friends :D

blocko.utils


block->blockscljs

(block->blocks blocks block position)

Takes an input of blocks, into which it adds block, depending on given position. If the blocks are empty, it simply returns a vector with just the given block in it. Otherwise, it will position it accordingly.

Takes an input of `blocks`, into which it adds `block`, 
depending on given `position`. If the `blocks` are empty, 
it simply returns a vector with just the given `block` in it. 
Otherwise, it will position it accordingly.
sourceraw docstring

block<-blockscljs

(block<-blocks blocks id)

Takes an input of blocks from which it removes whatever block is occupying space on given index, and returns the result.

Takes an input of `blocks` from which it removes whatever
block is occupying space on given `index`, and returns the
result.
sourceraw docstring

edn->jscljs

(edn->js edn)
source

edn->jsoncljs

(edn->json edn)
source

find-by-predicatecljs

(find-by-predicate predicate collection)
source

js->edncljs

(js->edn js)
source

json->edncljs

(json->edn json)
source

parse-htmlcljs

(parse-html html)

Takes in a raw string of html, and then removes all HTML elements other than a a, u, b, i. It also removes any attributes the HTML elements may have, to make sure that when a user pastes content from something that gives along formatting instructions, we'd ignore that.

Takes in a raw string of `html`, and then removes all HTML
elements other than a `a`, `u`, `b`, `i`. It also removes 
any attributes the HTML elements may have, to make sure that
when a user pastes content from something that gives along 
formatting instructions, we'd ignore that.
sourceraw docstring

string->stringcljs

(string->string string inserted-string index)

Inserts the inserted-string into string at the given index index.

Inserts the `inserted-string` into `string` at the given
index `index`.
sourceraw docstring

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

× close