Liking cljdoc? Tell your friends :D

baredom.utils.model


non-empty-string?cljs

(non-empty-string? value)

True when value is a string with at least one character.

True when value is a string with at least one character.
sourceraw docstring

parse-bool-attrcljs

(parse-bool-attr s)

An attribute that says true or false with no default of its own: false when absent or "false" in any case. For an attribute that is off by default use parse-bool-present.

An attribute that says true or false with no default of its own: false when absent or
`"false"` in any case. For an attribute that is off by default use `parse-bool-present`.
sourceraw docstring

parse-bool-default-truecljs

(parse-bool-default-true s)

An attribute that is on by default: true when absent, false only for the text "false" in any case. Pass the value of getAttribute.

An attribute that is on by default: true when absent, false only for the text `"false"`
in any case. Pass the value of `getAttribute`.
sourceraw docstring

parse-bool-presentcljs

(parse-bool-present s)

An attribute that is off by default, read as HTML does: true when present, whatever its text. Pass the value of getAttribute.

An attribute that is off by default, read as HTML does: true when present, whatever its text.
Pass the value of `getAttribute`.
sourceraw docstring

safe-url?cljs

(safe-url? url)

Returns true when url uses an allowed protocol or is a relative URL.

Returns true when url uses an allowed protocol or is a relative URL.
sourceraw docstring

sanitize-svg-path-dcljs

(sanitize-svg-path-d s)

Strips characters that are not valid in an SVG path d-attribute. Returns nil if the result is blank.

Strips characters that are not valid in an SVG path d-attribute.
Returns nil if the result is blank.
sourceraw docstring

sanitize-urlcljs

(sanitize-url url)

Returns the url unchanged when safe-url? accepts it; otherwise the empty string. Note: nil and the empty string both round-trip to "", so callers cannot use the return value to distinguish "missing url" from "unsafe url" — guard with safe-url? directly when that distinction matters.

Returns the url unchanged when `safe-url?` accepts it; otherwise the
empty string. Note: nil and the empty string both round-trip to `""`,
so callers cannot use the return value to distinguish "missing url"
from "unsafe url" — guard with `safe-url?` directly when that
distinction matters.
sourceraw docstring

unique-keyscljs

(unique-keys identities)

A key for each of identities, in order: the identity as text, and how many equal ones come before it. Equal identities so get different keys.

A key for each of `identities`, in order: the identity as text, and how many equal ones come
before it. Equal identities so get different keys.
sourceraw docstring

with-unique-keyscljs

(with-unique-keys identity-of items)

The maps items, each with a :key made of what identity-of gives for it.

The maps `items`, each with a `:key` made of what `identity-of` gives for it.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close