feature: vor und nachteile

This commit is contained in:
Hikyu
2026-05-31 13:54:31 +02:00
parent 552a947a1c
commit e3dad17446
23270 changed files with 3024794 additions and 200 deletions
+16
View File
@@ -0,0 +1,16 @@
//#region src/compat/array/flatten.d.ts
/**
* Flattens array up to depth times.
*
* @template T
* @param {ArrayLike<T> | null | undefined} value - The array to flatten.
* @param {number} depth - The maximum recursion depth.
* @returns {any[]} Returns the new flattened array.
*
* @example
* flatten([1, [2, [3, [4]], 5]], 2);
* // => [1, 2, 3, [4], 5]
*/
declare function flatten<T>(value: ArrayLike<T | readonly T[]> | null | undefined): T[];
//#endregion
export { flatten };