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

Usage in Deno

```typescript import { isSetIterator } from "node:node__util--types.d.ts"; ```
isSetIterator(object: unknown): boolean
Returns `true` if the value is an iterator returned for a built-in [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instance. ```js const set = new Set(); util.types.isSetIterator(set.keys()); // Returns true util.types.isSetIterator(set.values()); // Returns true util.types.isSetIterator(set.entries()); // Returns true util.types.isSetIterator(set[Symbol.iterator]()); // Returns true ```

Parameters

object: unknown

Return Type

boolean