README -> API Index -> Function Index
Function pages are grouped by module.
- lib._boot
- install - Install normalized environment metadata onto
lib._env. - resolveRoot - Resolve the best-available root object.
- install - Install normalized environment metadata onto
- lib._http
- lib.args
- parse - Parse a positional argument list into a hash.
- slice - Slice an arguments-like object into a real array.
- isArguments - Determine whether a value is an
Argumentsobject.
- lib.array
- append - Wrap each item in
inputwith a prefix and postfix. - subtract - Return a copy of
listwith all values inexcluderemoved. - trim - Normalize a value into an array and trim whitespace from string elements.
- is - Check whether a value is an Array.
- to - Coerce any input into an array.
- len - Return array length, or 0 if not an array.
- filterStrings - Normalize an input into an array of non-empty strings.
- append - Wrap each item in
- lib.bool
- intentTrue - Detect affirmative intent.
- intentFalse - Detect negative intent.
- is - Is the value a real boolean (true or false)?
- isIntent - Does the value explicitly encode boolean intent?
- to - Strict boolean conversion.
- byIntent - Intent-based boolean conversion.
- hasIntent - Alias of
lib.bool.isIntent. - ish - Alias of
lib.bool.isIntent. - yes - Alias of
lib.bool.intentTrue. - no - Alias of
lib.bool.intentFalse.
- lib.func
- name - Attempt to retrieve immediate caller info from the stack.
- wrapper - Wrap one function with post-applied arguments.
- postWrap - Wrap a function chain with post-applied arguments.
- preWrap - Wrap a function chain with pre-applied arguments.
- get - Resolve a function target.
- parseList - Parse a compact function-list DSL into normalized call records.
- lib.hash
- get - Safely get a nested value from an object using a dot-path.
- set - Set a deep property on an object using a dotted path, creating missing intermediate objects as needed.
- legacySet - Legacy non-destructive dotted-path setter.
- expand - Expand a list of property paths from an object into an array of values.
- to - Coerce any input into a hash (plain object).
- is - Determine whether a value is a plain hash object.
- hasKeys - Check that an object has all of the given keys / paths.
- append - Shallow key/value decoration helper.
- merge - Deep merge two plain hashes (non-destructive).
- mergeMany - Merge a list of hashes left-to-right.
- flatten - Flatten a nested hash or array into a shallow key/value object.
- inflate - Inflate a flat hash of key/value pairs into a nested object.
- exists - Check whether a deep property path exists.
- strip - Deep-strip unwanted values from a hash/array structure.
- filter - Filter an object or array by predicate.
- getUntilNotEmpty - Return the first non-null / non-undefined value found at any of the given paths.
- deepCopy - Deep copy utility with class / DOM safeguards.
- keys - Return the enumerable keys of a hash.
- empty - Test whether a value is an empty hash (plain object with no keys).
- slice - Slice selected keys/paths from a record into a new object.
- lib.number
- lib.require
- lib.service
- lib.str
- is - Determine whether a value is a string primitive.
- lc - Lowercase helper with optional forced coercion.
- to - Coerce a value to a string (legacy-safe, normalized).
- stripComments - Strip JavaScript-style comments from source text.
- countChars - Counts the total occurrences of one or more characters in a string.
- interp - Interpolate
${...}tokens with hash/eval resolution modes.
- lib.utils
- isArray - Alias passthrough to
lib.array.is. - toArray - Alias passthrough to
lib.array.to. - isHash - Alias passthrough to
lib.hash.is. - toHash - Alias passthrough to
lib.hash.to. - deepCopy - Alias passthrough to
lib.hash.deepCopy. - isScalar - Determine whether a value is a scalar (leaf value).
- toString - Alias passthrough to
lib.str.to. - baseType - Determine the base type of a value, optionally comparing against allowed types.
- isEmpty - Determine whether a value should be treated as "empty".
- linkType - Classify a link-like value or test membership against allowed types.
- clamp - Clamp a value to an allowed set.
- toNumber - Coerce a value into a finite number.
- getFunction - Alias passthrough to
lib.func.get. - stripComments - Alias passthrough to
lib.str.stripComments. - lc - Alias passthrough to
lib.str.lc.
- isArray - Alias passthrough to
- lib.dom
- get - Get a value from a DOM element with a few legacy carve-outs.
- set - Set a value on a DOM element using legacy-safe attribute/property rules.
- is - Check whether a value is a DOM Element.
- isDom - Check whether a value is a DOM Element.
- getElement - Resolve an element reference.
- byId - Alias for document.getElementById.
- removeElement - Remove an element from the DOM.
- qs - Parse the current query string into a plain object.
- insertAfter - Insert a DOM node immediately after another node.
- filterAttributes - Collect an element's attributes into a plain object, optionally filtering by regex.
- attempt - Best-effort coercion from mixed input into a DOM node.
- lib.dom.create
- lib.dom.append
- before - Insert
ebeforetarget. - after - Insert
eaftertarget. - prepend - Insert
eas first child oftarget. - append - Insert
eas last child oftarget. - beforeBegin - Insert
eimmediately beforetargetusing adjacent positioning. - afterBegin - Insert
eas the first child insidetarget. - beforeEnd - Insert
eas the last child insidetarget. - afterEnd - Insert
eimmediately aftertargetusing adjacent positioning. - adjacent - Insert using DOM-standard positions (mirrors insertAdjacentElement).
- replace - Replace target with element.
- remove - Remove target from DOM.
- empty - Empty a target (remove all children).
- resolveTarget - Resolve a target-ish input into a DOM Element.
- before - Insert
- lib.dom.form
- submit - Submit from a trigger or collected payload through native or request-envelope flow.
- collect - Alias of
collectForm. - collectForm - Collect a form into
{ url, method, parms, form, event }. - toJson - Convert trigger/collected form into JSON-like object (inflated or flat).
- makeUrl - Build final URL, appending query params for GET.
- makeHeader - Build request headers from method/body/content type inputs.
- makeBody - Build request body using JSON/urlencoded/form-data rules.
- getDomKV - Read one element into
{key,value}entry (or list of entries). - arrayToQS - Convert key/value tuple list into query string.
- arrayToHash - Convert key/value tuple list into object with repeat keys as arrays.
- lib.dom.transform
- Modules index -> ../modules/INDEX.md
- API index -> ../INDEX.md