This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
StasisWarden-Legacy/node_modules/es-toolkit/dist/compat/function/nthArg.js
T

14 lines
281 B
JavaScript

'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;