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

Usage in Deno

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

Parameters

object: unknown

Return Type

boolean