Bump to v4.12.0.

This commit is contained in:
John-David Dalton
2016-05-07 11:49:46 -07:00
parent ccdfca5392
commit 6f47eae67b
121 changed files with 17293 additions and 834 deletions

26
_listCacheSet.js Normal file
View File

@@ -0,0 +1,26 @@
define(['./_assocIndexOf'], function(assocIndexOf) {
/**
* Sets the list cache `key` to `value`.
*
* @private
* @name set
* @memberOf ListCache
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the list cache instance.
*/
function listCacheSet(key, value) {
var data = this.__data__,
index = assocIndexOf(data, key);
if (index < 0) {
data.push([key, value]);
} else {
data[index][1] = value;
}
return this;
}
return listCacheSet;
});