Skip to content

isWeakMap

Returns true for WeakMap instances

130 bytes

Usage

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

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