1 var assocIndexOf = require('./_assocIndexOf');
4 * Sets the list cache `key` to `value`.
9 * @param {string} key The key of the value to set.
10 * @param {*} value The value to set.
11 * @returns {Object} Returns the list cache instance.
13 function listCacheSet(key, value) {
14 var data = this.__data__,
15 index = assocIndexOf(data, key);
19 data.push([key, value]);
21 data[index][1] = value;
26 module.exports = listCacheSet;