isSet es-toolkit
Checks if a given value is a Set instance.
Usage
isSet(value)
Use isSet when you want to check if a value is a Set instance. It's useful for distinguishing Set objects from other objects.
Useful when executing different logic for JavaScript built-in objects like Set, Array, and Map.
Can also be used extensively in Set manipulation and data transformation.
Parameters
valueunknownrequired
The value to check if it's a Set instance.
Returns
Returns true if the value is a Set instance, false otherwise.
Source: es-toolkit
Re-exported verbatim from es-toolkit. Implementation, edge cases, and performance behavior are owned upstream. This page mirrors the documentation at the pinned version; the linked source is authoritative.