Skip to main content
function isMapIterator
isMapIterator(object: unknown): boolean
Deprecated

Returns true if the value is an iterator returned for a built-in Map instance.

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
Back to top