Sha256: 0ca727d1533e9ea06dbb15067772529018b90e106be4a58ed769185e45c19222

Contents?: true

Size: 632 Bytes

Versions: 276

Compression:

Stored size: 632 Bytes

Contents

var MapCache = require('./_MapCache'),
    setCacheAdd = require('./_setCacheAdd'),
    setCacheHas = require('./_setCacheHas');

/**
 *
 * Creates an array cache object to store unique values.
 *
 * @private
 * @constructor
 * @param {Array} [values] The values to cache.
 */
function SetCache(values) {
  var index = -1,
      length = values == null ? 0 : values.length;

  this.__data__ = new MapCache;
  while (++index < length) {
    this.add(values[index]);
  }
}

// Add methods to `SetCache`.
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
SetCache.prototype.has = setCacheHas;

module.exports = SetCache;

Version data entries

276 entries across 274 versions & 30 rubygems

Version Path
rapid_stack-0.2.0 templates/frontend/node_modules/lodash/_SetCache.js
rapid_stack-0.1.1 templates/FrontEnd/node_modules/lodash/_SetCache.js
rapid_stack-0.1.0 templates/FrontEnd/node_modules/lodash/_SetCache.js
immosquare-cleaner-0.1.60 node_modules/lodash/_SetCache.js
immosquare-cleaner-0.1.59 node_modules/lodash/_SetCache.js
immosquare-cleaner-0.1.58 node_modules/lodash/_SetCache.js
immosquare-cleaner-0.1.57 node_modules/lodash/_SetCache.js
immosquare-cleaner-0.1.56 node_modules/lodash/_SetCache.js
immosquare-cleaner-0.1.55 node_modules/lodash/_SetCache.js
immosquare-cleaner-0.1.54 node_modules/lodash/_SetCache.js
immosquare-cleaner-0.1.53 node_modules/lodash/_SetCache.js
immosquare-cleaner-0.1.52 node_modules/lodash/_SetCache.js
trusty-cms-6.3.1 node_modules/lodash/_SetCache.js
immosquare-cleaner-0.1.51 node_modules/lodash/_SetCache.js
boring_generators-0.15.0 tmp/templates/app_template/node_modules/lodash/_SetCache.js
clapton-0.0.26 lib/clapton/javascripts/node_modules/lodash/_SetCache.js
clapton-0.0.25 lib/clapton/javascripts/node_modules/lodash/_SetCache.js
immosquare-cleaner-0.1.50 node_modules/lodash/_SetCache.js
clapton-0.0.24 lib/clapton/javascripts/node_modules/lodash/_SetCache.js
clapton-0.0.23 lib/clapton/javascripts/node_modules/lodash/_SetCache.js