• 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, ...args) => TResult)

      The wrapper function.

        • (value, ...args): TResult
        • Parameters

          • value: T
          • Rest ...args: TArgs[]

          Returns TResult

    Returns ((...args) => TResult)

    Returns the new function.

      • (...args): TResult
      • 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.

        Parameters

        • Rest ...args: TArgs[]

        Returns TResult

        Returns the new function.

Generated using TypeDoc