Urara-Blog/node_modules/.pnpm-store/v3/files/32/e8b06e5520633a4297fe85acbbaa510686eeb1146ceb7b1d6b52fc8c93054a42d9ab0230a961bc4016e849e8eff062e7bf739c04f7b70a47d7406c23720c1c
2022-08-14 01:14:53 +08:00

27 lines
613 B
Text

var baseIsSet = require('./_baseIsSet'),
baseUnary = require('./_baseUnary'),
nodeUtil = require('./_nodeUtil');
/* Node.js helper references. */
var nodeIsSet = nodeUtil && nodeUtil.isSet;
/**
* Checks if `value` is classified as a `Set` object.
*
* @static
* @memberOf _
* @since 4.3.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
* @example
*
* _.isSet(new Set);
* // => true
*
* _.isSet(new WeakSet);
* // => false
*/
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
module.exports = isSet;