mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 16:13:18 +00:00
28 lines
613 B
JavaScript
28 lines
613 B
JavaScript
|
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;
|