> For the complete documentation index, see [llms.txt](https://lodash.shujuwajue.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lodash.shujuwajue.com/array/flattendeep.md).

# \_.flattenDeep（递归为一维数组）

**语法：**

```javascript
_.flattenDeep(array)
```

**源代码链接：**[source](https://github.com/lodash/lodash/blob/4.17.10/lodash.js#L7344)

**npm包链接：**[npm package](https://www.npmjs.com/package/lodash.flattendeep)

**描述：**

将`array`递归为一维数组。

**开始版本：**&#x33;.0.0

**参数：**

* `array (Array)`: 需要处理的数组。

**返回值：**

* `array (Array)`: 返回一个的新一维数组。

**例子：**

```javascript
_.flattenDeep([1, [2, [3, [4]], 5]]);
// => [1, 2, 3, 4, 5]
```
