> For AI agents: the complete documentation index is available at https://massaman.dev/llms.txt, the full documentation bundle is available at https://massaman.dev/llms-full.txt.

# Function


[afterCreates a new function that invokes the original function starting from the n-th call.](/reference/function/after)[aryCreates a new function that limits the number of arguments a function can accept.](/reference/function/ary)[asyncNoopA function that asynchronously does nothing.](/reference/function/asyncNoop)[beforeCreates a new function that limits the number of times a function can be called.](/reference/function/before)[callInvokes a function with the provided arguments and returns the result.](/reference/function/call)[callAsyncInvokes a function returning a Promise with the provided arguments.](/reference/function/callAsync)[curryCurries a function so it can be called with one argument at a time.](/reference/function/curry)[curryRightCurries a function from right to left so it can be called with one argument at a time.](/reference/function/curryRight)[debounceCreates a debounced function that delays the invocation of a function.](/reference/function/debounce)[flowCreates a new function that executes multiple functions in sequence.](/reference/function/flow)[flowAsyncCreates an async pipeline that awaits each step before passing the result to the next function.](/reference/function/flowAsync)[flowRightCreates a new function that executes the given functions in sequence from right to left.](/reference/function/flowRight)[identityReturns the input value as is.](/reference/function/identity)[ifElseReturns a function that branches between two functions based on a predicate.](/reference/function/ifElse)[memoizeCaches function results so it runs faster when called again with the same arguments.](/reference/function/memoize)[negateCreates a new function that inverts the return value of a function that returns true or false.](/reference/function/negate)[noopAn empty function that does nothing.](/reference/function/noop)[onceCreates a new function that limits a function to be executed only once.](/reference/function/once)[partialCreates a new function with some arguments pre-applied.](/reference/function/partial)[partialRightCreates a new function with some parameters pre-applied from the right.](/reference/function/partialRight)[restCreates a new function that bundles parameters from a specific index into an array and passes them to the function.](/reference/function/rest)[retryRetries a Promise-returning function until it succeeds.](/reference/function/retry)[spreadCreates a new function that spreads a parameter array into individual parameters of the function.](/reference/function/spread)[tapReturns a function that runs a side-effect and returns the value unchanged.](/reference/function/tap)[throttleLimits a function to be executed at most once per specified time interval.](/reference/function/throttle)[unaryCreates a new function that limits a function to accept only the first parameter.](/reference/function/unary)[unlessReturns a function that applies a transform only when a predicate fails, otherwise returns the value unchanged.](/reference/function/unless)[whenReturns a function that applies a transform only when a predicate passes, otherwise returns the value unchanged.](/reference/function/when)