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

28
node_modules/es-toolkit/dist/compat/array/take.d.ts generated vendored Normal file
View File

@@ -0,0 +1,28 @@
//#region src/compat/array/take.d.ts
/**
* Creates a slice of array with n elements taken from the beginning.
*
* @template T
* @param {ArrayLike<T> | null | undefined} array - The array to query.
* @param {number} [n=1] - The number of elements to take.
* @returns {T[]} Returns the slice of array.
*
* @example
* take([1, 2, 3]);
* // => [1]
*
* @example
* take([1, 2, 3], 2);
* // => [1, 2]
*
* @example
* take([1, 2, 3], 5);
* // => [1, 2, 3]
*
* @example
* take([1, 2, 3], 0);
* // => []
*/
declare function take<T>(array: ArrayLike<T> | null | undefined, n?: number): T[];
//#endregion
export { take };