Skip to content

isSet

Checks if the given value is a Set. Instances from [other realms][1] are also supported. [1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/instanceof#instanceof_and_multiple_realms

Usage

isSet(new Set([1, 2, 3])); // => true
isSet(new Map([1, 2, 3])); // => false

Installation

Terminal window
npx atmx add helper is-set