00001 var MapCache = require('./_MapCache'),
00002 setCacheAdd = require('./_setCacheAdd'),
00003 setCacheHas = require('./_setCacheHas');
00004
00013 function SetCache(values) {
00014 var index = -1,
00015 length = values == null ? 0 : values.length;
00016
00017 this.__data__ = new MapCache;
00018 while (++index < length) {
00019 this.add(values[index]);
00020 }
00021 }
00022
00023
00024 SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
00025 SetCache.prototype.has = setCacheHas;
00026
00027 module.exports = SetCache;