> 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/lang/isset.md).

# \_.isSet（是否为Set对象）

**语法：**

```javascript
_.isSet(value)
```

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

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

**描述：**

检查 value 是否是一个Set对象。

**开始版本：**&#x34;.3.0

**参数：**

* `value (*)`: 要检查的值。

**返回值：**

* `(boolean)`: 如果 value 为一个 set 对象，那么返回 true，否则返回 false。

**例子：**

```javascript
_.isSet(new Set);
// => true

_.isSet(new WeakSet);
// => false
```
