• Creates a function that provides value to the wrapper function as its first argument. Any additional arguments provided to the function are appended to those provided to the wrapper function. The wrapper is invoked with the this binding of the created function.

    Type Parameters

    • T
    • TArgs
    • TResult

    Parameters

    • value: T

      The value to wrap.

    • wrapper: ((value: T, ...args: TArgs[]) => TResult)

      The wrapper function.

    Returns ((...args: TArgs[]) => TResult)

    Returns the new function.