Bump to v4.12.0.

This commit is contained in:
John-David Dalton
2016-05-07 11:55:10 -07:00
parent 35805ec250
commit 07c844053e
124 changed files with 587 additions and 480 deletions

25
_listCacheSet.js Normal file
View File

@@ -0,0 +1,25 @@
import assocIndexOf from './_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;
}
export default listCacheSet;