Files
railwaysystem/RuoYi-Vue/ruoyi-ui/node_modules2/@antv/util/lib/flatten.d.ts
T

11 lines
294 B
TypeScript
Raw Normal View History

2026-09-10 15:40:10 +08:00
/**
* Flattens `array` a single level deep.
*
* @param {Array} arr The array to flatten.
* @return {Array} Returns the new flattened array.
* @example
*
* flatten([1, [2, [3, [4]], 5]]); // => [1, 2, [3, [4]], 5]
*/
declare const flatten: <T>(arr: T[]) => T[];
export default flatten;