Skip to main content
isWeakSet - node__util--types.d.ts - Node documentation
function isWeakSet

Usage in Deno

```typescript import { isWeakSet } from "node:node__util--types.d.ts"; ```
isWeakSet(object: unknown): object is WeakSet<object>
Returns `true` if the value is a built-in [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) instance. ```js util.types.isWeakSet(new WeakSet()); // Returns true ```

Parameters

object: unknown

Return Type

object is WeakSet<object>