• Creates a function that invokes func with partials prepended to the arguments it receives. This function is like bind except it does not alter the this binding.

    Differences from lodash:

    • there is no "placeholder" functionality
    • sets the "length" property of partially applied functions

    Contribution to minified bundle size, when it is the only function imported:

    • Lodash: 10,767 bytes
    • Micro-dash: 48 bytes

    Type Parameters

    • F extends ((...args) => any)

    Parameters

    • func: F

    Returns F

  • Type Parameters

    • A1

    • F extends ((arg1, ...rest) => any)

    Parameters

    • func: F
    • arg1: A1

    Returns Drop1Arg<F>

  • Type Parameters

    • A1

    • A2

    • F extends ((...args) => any)

    Parameters

    • func: F
    • arg1: A1
    • arg2: A2

    Returns Drop2Args<F>

  • Type Parameters

    • A1

    • A2

    • A3

    • F extends ((...args) => any)

    Parameters

    • func: F
    • arg1: A1
    • arg2: A2
    • arg3: A3

    Returns Drop3Args<F>

  • Type Parameters

    • A1

    • A2

    • A3

    • A4

    • F extends ((...args) => any)

    Parameters

    • func: F
    • arg1: A1
    • arg2: A2
    • arg3: A3
    • arg4: A4

    Returns Drop4Args<F>

  • Type Parameters

    • A1

    • A2

    • A3

    • A4

    • F extends ((...args) => any)

    Parameters

    • func: F
    • Rest ...partials: [A1, A2, A3, A4, ...any[]]

    Returns ((...args) => ReturnType<F>)

      • (...args): ReturnType<F>
      • Parameters

        • Rest ...args: any[]

        Returns ReturnType<F>

Generated using TypeDoc