Skip to content

isSet

Returns true for Set instances

122 bytes

Usage

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

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