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

# \_.isWeakSet（是否为WeakSet对象）

**语法：**

```javascript
_.isWeakSet(value)
```

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

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

**描述：**

检查`value`是否是`WeakSet`对象。

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

**参数：**

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

**返回值：**

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

**例子：**

```javascript
_.isWeakSet(new WeakSet);
// => true

_.isWeakSet(new Set);
// => false
```
