• Creates a function that returns its nth argument.

    Parameters

    • Optional n: number

      The index of the argument to return.

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

    Returns the new function.

      • (...args): any
      • Creates a function that returns its nth argument.

        Parameters

        • Rest ...args: any[]

        Returns any

        Returns the new function.

Generated using TypeDoc