Skip to content

isMap

Returns true for Map instances

122 bytes

Usage

Returns true for Map instances, even if they are subclass instances or from other realms.

import * as _ from 'radashi'
_.isMap(new Map()) // true
_.isMap(new (class extends Map {})()) // true