/** * Returns a function which will return the nth argument passed to it * * @since 1.0.0 * * @param {number} idx - The index of the argument to be returned * * @returns {Function} - A function which will return the nth argument passed to it * * @example * const getSecondArg = nthArg(1); * getSecondArg(1, 2, 3); // => 2 * * const getThirdArg = nthArg(2); * getThirdArg('a', 'b', 'c', 'd'); // => 'c' */ declare const nthArg: (idx?: number) => Function; export default nthArg;