Project Init

This commit is contained in:
Muluhabt
2026-05-29 15:23:46 +03:00
commit 2fbc557aac
67387 changed files with 6063341 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
//#region src/compat/function/nthArg.d.ts
/**
* Creates a function that gets the argument at index `n`. If `n` is negative, the nth argument from the end is returned.
*
* @param {number} [n=0] - The index of the argument to return.
* @returns {(...args: any[]) => any} Returns the new function.
*
* @example
* var func = nthArg(1);
* func('a', 'b', 'c', 'd');
* // => 'b'
*
* var func = nthArg(-2);
* func('a', 'b', 'c', 'd');
* // => 'c'
*/
declare function nthArg(n?: number): (...args: any[]) => any;
//#endregion
export { nthArg };