Module

x/lodash_es/src/util.js>nthArg

lodash for deno use
Latest
function nthArg
import { nthArg } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/util.js";

Creates a function that gets the argument at index n. If n is negative, the nth argument from the end is returned.

Examples

var func = _.nthArg(1); func('a', 'b', 'c', 'd'); // => 'b'

var func = _.nthArg(-2); func('a', 'b', 'c', 'd'); // => 'c'