Sha256: ffd6bed10a91ca6c0b408f3f5bc0f45fa247e4f0bf6f9eb4c0f83f45c730b7d9
Contents?: true
Size: 643 Bytes
Versions: 264
Compression:
Stored size: 643 Bytes
Contents
var baseGetTag = require('./_baseGetTag'), isObjectLike = require('./isObjectLike'); /** `Object#toString` result references. */ var weakSetTag = '[object WeakSet]'; /** * Checks if `value` is classified as a `WeakSet` object. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a weak set, else `false`. * @example * * _.isWeakSet(new WeakSet); * // => true * * _.isWeakSet(new Set); * // => false */ function isWeakSet(value) { return isObjectLike(value) && baseGetTag(value) == weakSetTag; } module.exports = isWeakSet;
Version data entries
264 entries across 262 versions & 29 rubygems