123456789101112131415161718192021222324252627 |
- import MapCache from './_MapCache.js';
- import setCacheAdd from './_setCacheAdd.js';
- import setCacheHas from './_setCacheHas.js';
- function SetCache(values) {
- var index = -1,
- length = values == null ? 0 : values.length;
- this.__data__ = new MapCache;
- while (++index < length) {
- this.add(values[index]);
- }
- }
- SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
- SetCache.prototype.has = setCacheHas;
- export default SetCache;
|