|
| 1 | +# Public APIs |
| 2 | + |
| 3 | +## Type Aliases |
| 4 | + |
| 5 | +| Type Alias | Description | |
| 6 | +| ---------------------------------------- | --------------------------------------------------------------------------------------------------------------- | |
| 7 | +| [NarrowedTo](type-aliases/NarrowedTo.md) | An extension of Extract for type predicates which falls back to the base in order to narrow the `unknown` case. | |
| 8 | +| [Pretty](type-aliases/Pretty.md) | - | |
| 9 | +| [unit](type-aliases/unit.md) | alias for `undefined`. | |
| 10 | + |
| 11 | +## Variables |
| 12 | + |
| 13 | +| Variable | Description | |
| 14 | +| ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 15 | +| [compose](variables/compose.md) | Composes two functions, `ab` and `bc` into a single function that takes in an argument `a` of type `A` and returns a result of type `C`. The result is obtained by first applying the `ab` function to `a` and then applying the `bc` function to the result of `ab`. | |
| 16 | +| [dual](variables/dual.md) | Creates a function that can be used in a data-last (aka `pipe`able) or data-first style. | |
| 17 | +| [unit](variables/unit.md) | alias for `undefined`. | |
| 18 | + |
| 19 | +## Functions |
| 20 | + |
| 21 | +| Function | Description | |
| 22 | +| ----------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 23 | +| [absurd](functions/absurd.md) | The `absurd` function is a stub for cases where a value of type `never` is encountered in your code, meaning that it should be impossible for this code to be executed. | |
| 24 | +| [apply](functions/apply.md) | Apply a function to a given value. | |
| 25 | +| [constant](functions/constant.md) | Returns a function that always returns the same value. | |
| 26 | +| [constFalse](functions/constFalse.md) | Do nothing and return `false`. | |
| 27 | +| [constNull](functions/constNull.md) | Do nothing and return `null`. | |
| 28 | +| [constTrue](functions/constTrue.md) | Do nothing and return `true`. | |
| 29 | +| [constVoid](functions/constVoid.md) | Do nothing and return `void`. | |
| 30 | +| [flip](functions/flip.md) | Reverses the order of arguments for a curried function. | |
| 31 | +| [flow](functions/flow.md) | Performs left-to-right function composition. The first argument may have any arity, the remaining arguments must be unary. | |
| 32 | +| [getOrElse](functions/getOrElse.md) | Retrieves a value from a Map or WeakMap if the key exists, or computes a new value if it doesn't. | |
| 33 | +| [getOrElseUpdate](functions/getOrElseUpdate.md) | Retrieves a value from a Map or WeakMap if the key exists, or computes and stores a new value if it doesn't. | |
| 34 | +| [identity](functions/identity.md) | Returns its argument. | |
| 35 | +| [isArray](functions/isArray.md) | A function that checks if the passed parameter is an Array and narrows its type accordingly. | |
| 36 | +| [isFunction](functions/isFunction.md) | Tests if a value is a `function`. | |
| 37 | +| [isObject](functions/isObject.md) | Checks if the given parameter is of type `"object"` via `typeof`, excluding `null`. | |
| 38 | +| [isTruthy](functions/isTruthy.md) | A function that checks if the passed parameter is truthy and narrows its type accordingly. | |
| 39 | +| [not](functions/not.md) | A function that takes a guard function as predicate and returns a guard that negates it. | |
| 40 | +| [or](functions/or.md) | A function that takes two guard functions as predicates and returns a guard that checks if either of them is true. | |
| 41 | +| [pipe](functions/pipe.md) | Pipes the value of an expression into a pipeline of functions. | |
| 42 | +| [pipeArguments](functions/pipeArguments.md) | - | |
| 43 | +| [tryAddToSet](functions/tryAddToSet.md) | Attempts to add a value to a Set, but only if it doesn't already exist. | |
| 44 | +| [tupled](functions/tupled.md) | Creates a version of this function: instead of `n` arguments, it accepts a single tuple argument. | |
| 45 | +| [untupled](functions/untupled.md) | Inverse function of `tupled`. | |
0 commit comments