Skip to content

isWeakSet

Returns true for WeakSet instances

130 bytes

Usage

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

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