• Creates a function that returns its nth argument.

    Parameters

    • Optionaln: number

      The index of the argument to return.

    Returns ((...args: any[]) => any)

    Returns the new function.

      • (...args): any
      • Parameters

        • Rest...args: any[]

        Returns any