• 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

    Returns Drop2Args<F>

  • Type Parameters

    • A1
    • A2
    • A3
    • F extends ((...args) => any)

    Parameters

    Returns Drop3Args<F>

  • Type Parameters

    • A1
    • A2
    • A3
    • A4
    • F extends ((...args) => any)

    Parameters

    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>