Library API
    Preparing search index...

    Function curry

    • Curries a function to allow partial application of its arguments.

      Type Parameters

      • Args extends any[]
      • Res

      Parameters

      • fn: (...args: Args) => Res

        The original function to curry

      Returns Curry<Args, Res>

      A curried version of the function

      const add = curry((a: number, b: number) => a + b);
      add(1)(2); // 3