UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

10 lines (7 loc) 176 B
import { toInteger } from '../util/toInteger.mjs'; function nthArg(n = 0) { return function (...args) { return args.at(toInteger(n)); }; } export { nthArg };