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.mjs
T

10 lines
176 B
JavaScript

import { toInteger } from '../util/toInteger.mjs';
function nthArg(n = 0) {
return function (...args) {
return args.at(toInteger(n));
};
}
export { nthArg };