Repository URL to install this package:
|
Version:
1.2.8 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// import { toStringTag } from 'exotic/types/kind'
const kind_1 = require("../kind");
/**
* Checks if `value` is classified as a `Set` object.
*
* @since 4.3.0
* @category Lang
* @param {*} x The value to check.
* @return {boolean} Returns `true` if `value` is a set, else `false`.
*
* @TODO map[Symbol.species] === Set
*
* @example
*
* isSet(new Set)
* //=> true
*
* isSet(new WeakSet)
* //=> false
*
*/
function isSet(x) {
// return x instanceof Set || toS(x) === '[object Set]'
return kind_1.toStringTag(x) === '[object Set]';
}
exports.isSet = isSet;
exports.default = isSet;
//# sourceMappingURL=isSet.js.map