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,17 @@
import { ListOfRecursiveArraysOrValues } from "../_internal/ListOfRecursiveArraysOrValues.mjs";
//#region src/compat/array/flattenDeep.d.ts
/**
* Recursively flattens array.
*
* @template T
* @param {ArrayLike<T> | null | undefined} array - The array to flatten.
* @returns {Array<ExtractNestedArrayType<T>>} Returns the new flattened array.
*
* @example
* flattenDeep([1, [2, [3, [4]], 5]]);
* // => [1, 2, 3, 4, 5]
*/
declare function flattenDeep<T>(value: ListOfRecursiveArraysOrValues<T> | null | undefined): Array<T extends string ? T : T extends ArrayLike<any> ? never : T>;
//#endregion
export { flattenDeep };