Sha256: ffd6bed10a91ca6c0b408f3f5bc0f45fa247e4f0bf6f9eb4c0f83f45c730b7d9

Contents?: true

Size: 643 Bytes

Versions: 265

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

265 entries across 263 versions & 29 rubygems

Version Path
immosquare-cleaner-0.1.41 node_modules/lodash/isWeakSet.js
immosquare-cleaner-0.1.40 node_modules/lodash/isWeakSet.js
sumomo-0.10.8 data/sumomo/api_modules/node_modules/lodash/isWeakSet.js
immosquare-cleaner-0.1.39 node_modules/lodash/isWeakSet.js
immosquare-cleaner-0.1.38 node_modules/lodash/isWeakSet.js
optimacms-0.1.61 spec/dummy/node_modules/lodash/isWeakSet.js
boring_generators-0.13.0 tmp/templates/app_template/node_modules/lodash/isWeakSet.js
immosquare-cleaner-0.1.32 node_modules/lodash/isWeakSet.js
immosquare-cleaner-0.1.31 node_modules/lodash/isWeakSet.js
immosquare-cleaner-0.1.30 node_modules/lodash/isWeakSet.js
immosquare-cleaner-0.1.29 node_modules/lodash/isWeakSet.js
immosquare-cleaner-0.1.28 node_modules/lodash/isWeakSet.js
immosquare-cleaner-0.1.27 node_modules/lodash/isWeakSet.js
immosquare-cleaner-0.1.26 node_modules/lodash/isWeakSet.js
immosquare-cleaner-0.1.25 node_modules/lodash/isWeakSet.js
immosquare-cleaner-0.1.24 node_modules/lodash/isWeakSet.js
immosquare-cleaner-0.1.23 node_modules/lodash/isWeakSet.js
sumomo-0.10.4 data/sumomo/api_modules/node_modules/lodash/isWeakSet.js
sumomo-0.10.3 data/sumomo/api_modules/node_modules/lodash/isWeakSet.js
sumomo-0.10.2 data/sumomo/api_modules/node_modules/lodash/isWeakSet.js