1 | /**
|
2 | * Flattens `array` a single level deep.
|
3 | *
|
4 | * @param {Array} arr The array to flatten.
|
5 | * @return {Array} Returns the new flattened array.
|
6 | * @example
|
7 | *
|
8 | * flatten([1, [2, [3, [4]], 5]]); // => [1, 2, [3, [4]], 5]
|
9 | */
|
10 | declare const flatten: <T>(arr: T[]) => T[];
|
11 | export default flatten;
|