1 var getTag = require('./_getTag'),
2 isObjectLike = require('./isObjectLike');
4 /** `Object#toString` result references. */
5 var setTag = '[object Set]';
8 * Checks if `value` is classified as a `Set` object.
13 * @param {*} value The value to check.
14 * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
20 * _.isSet(new WeakSet);
23 function isSet(value) {
24 return isObjectLike(value) && getTag(value) == setTag;
27 module.exports = isSet;