Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
exotic / dist / types / collection / isWeakSet.js
Size: Mime:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const isObjNotNull_1 = require("../obj/check/isObjNotNull");
const kind_1 = require("../kind");
/**
 * Checks if `value` is classified as a `isWeakSet` object.
 *
 * @since 5.0.0-beta.4
 * @category Lang
 * @param {*} x The value to check.
 * @return {boolean} Returns `true` if `value` is a weak map, else `false`.
 *
 * @example
 *
 *   isWeakSet(new WeakSet)
 *   //=> true
 *
 *   isWeakSet(new Set)
 *   //=> false
 *
 */
function isWeakSet(x) {
    return isObjNotNull_1.isObjNotNull(x) && kind_1.toStringTag(x) === '[object WeakSet]';
}
exports.isWeakSet = isWeakSet;
exports.default = isWeakSet;
//# sourceMappingURL=isWeakSet.js.map