(camel-case value)
converts a string-like object to camel case representation
(camel-case :hello-world) => :helloWorld
(camel-case 'hello_world) => 'helloWorld
converts a string-like object to camel case representation (camel-case :hello-world) => :helloWorld (camel-case 'hello_world) => 'helloWorld
(lower-case value)
converts a string-like object to a lower case string
(lower-case "helloWorld") => "hello world"
(lower-case 'hello-world) => "hello world"
converts a string-like object to a lower case string (lower-case "helloWorld") => "hello world" (lower-case 'hello-world) => "hello world"
(re-sub value pattern sub-func)
substitute a pattern by applying a function
(re-sub "aTa" hump-pattern (fn [_] "$")) => "$a"
substitute a pattern by applying a function (re-sub "aTa" hump-pattern (fn [_] "$")) => "$a"
(separate-camel-humps value)
separate words that are camel cased (separate-camel-humps "aTaTa") => "a Ta Ta"
separate words that are camel cased (separate-camel-humps "aTaTa") => "a Ta Ta"
(snake-case value)
converts a string-like object to snake case representation
(snake-case :hello-world) => :hello_world
(snake-case 'helloWorld) => 'hello_world
converts a string-like object to snake case representation (snake-case :hello-world) => :hello_world (snake-case 'helloWorld) => 'hello_world
(spear-case value)
converts a string-like object to spear case representation
(spear-case :hello_world) => :hello-world
(spear-case 'helloWorld) => 'hello-world
converts a string-like object to spear case representation (spear-case :hello_world) => :hello-world (spear-case 'helloWorld) => 'hello-world
(title-case value)
converts a string-like object to a title case string
(title-case "helloWorld")
=> "Hello World"
(title-case :hello-world) => "Hello World"
converts a string-like object to a title case string (title-case "helloWorld") => "Hello World" (title-case :hello-world) => "Hello World"
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close