# isWeakSet
# Description
检查 value 是否是 WeakSet 对象。
# Params
value
# Return
Boolean
# Depend
import getTag from './.internal/getTag.js'
import isObjectLike from './isObjectLike.js'
# Code
function isWeakSet(value) {
return isObjectLike(value) && getTag(value) == '[object WeakSet]'
}
# Analyze
和 isWeakMap 基本类似,不再赘述
# Example
isWeakSet(new WeakSet)
// => true
isWeakSet(new Set)
// => false