227 B
227 B
isSet
Checks if value is classified as a Set object.
Use the instanceofoperator to check if the provided value is a Set object.
const isSet = val => val instanceof Set;
isSet(new Set()); // true