UNPKG

es-toolkit

Version:

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

14 lines (9 loc) 281 B
'use strict'; Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const toInteger = require('../util/toInteger.js'); function nthArg(n = 0) { return function (...args) { return args.at(toInteger.toInteger(n)); }; } exports.nthArg = nthArg;