* Adds `value` to the cache. * * @private * @name push * @memberOf SetCache * @param {*} value The value to cache.
(value)
| 2807 | * @param {*} value The value to cache. |
| 2808 | */ |
| 2809 | function cachePush(value) { |
| 2810 | var data = this.data; |
| 2811 | if (typeof value == 'string' || isObject(value)) { |
| 2812 | data.set.add(value); |
| 2813 | } else { |
| 2814 | data.hash[value] = true; |
| 2815 | } |
| 2816 | } |
| 2817 | |
| 2818 | /*------------------------------------------------------------------------*/ |
| 2819 |