> 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/math/min.md).

# \_.min（取数组中最小值）

**语法：**

```javascript
_.min(array)
```

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

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

**描述：**

计算`array`中的最小值。 如果`array`是 空的或者假值将会返回`undefined`。

**开始版本：**&#x30;.1.0

**参数：**

* `array (Array)`: 要迭代的数组。

**返回值：**

* `(*)`: 返回最小的值。

**例子：**

```javascript
_.min([4, 2, 8, 6]);
// => 2

_.min([]);
// => undefined
```
