• Creates a function that accepts up to n arguments ignoring any additional arguments.

    Parameters

    • func: ((...args) => any)

      The function to cap arguments for.

        • (...args): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • Optional n: number

      The arity cap.

    Returns ((...args) => any)

    Returns the new function.

      • (...args): any
      • Creates a function that accepts up to n arguments ignoring any additional arguments.

        Parameters

        • Rest ...args: any[]

        Returns any

        Returns the new function.

Generated using TypeDoc