@kredati/ludus-util
Useful functions, without types or guards
Useful functions, without types or guards
Sandbox is our publishing test module. There's only one function on this library and it's called condish. It accepts 2 nullable args. Useful for conditional rendering and easy to read.
If a function does not return an error, invoke a callback with the function result; otherwise, invoke a callback with a value `y`.
If a predicate function returns a truthy value, return `x`; otherwise, return `y`.
If a predicate function returns a truthy value, invoke `x`; otherwise, invoke `y`.
If a function does not return an error, invoke a callback with the function result; otherwise, invoke a second function.
If a function does not throw, return the function return value; otherwise, return the return value of a second function.
If a function does not throw, return the function return value; otherwise, return `y`.
If a condition is truthy, return `x`; otherwise, return `y`.
If a condition is truthy, invoke `x`; otherwise, invoke `y`.
Angular library to build reactive forms dynamic validation