Skip to main content

Built and signed on GitHub Actions

Dot notation for working with deeply nested complex data (with * wild cards)

This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
100%
Published
4 months ago (0.2.0)
f
blank

Checks if a value is considered blank or empty.

f
data_fill

Fills a value in an object if it doesn't exist.

f
data_forget

Remove an item from an array or object using "dot" notation.

f
data_get

Retrieves a value from a nested object or array using dot notation.

f
data_set

Set an item on an array or object using dot notation.

f
filled

Checks if a value is not blank or empty.

f
optional

Provides a way to access properties or call methods on an object that might be null or undefined.

f
retry

Attempts to execute a callback until it succeeds or the maximum attempt count is reached.

f
tap

Passes the value to the callback function and returns the original value. This function is useful for performing side effects on a value without changing the value itself.

f
throw_if

Throws an exception if the given condition is true.

f
throw_unless

Throws an exception unless the given condition is true.

f
transform

Transform the given value if it is not blank.

f
value

Returns the value if it's not a function, otherwise calls the function and returns its result.