mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 23:57:49 +00:00
Bump to v4.12.0.
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
var assocGet = require('./_assocGet');
|
||||
|
||||
/**
|
||||
* Gets the stack value for `key`.
|
||||
*
|
||||
@@ -10,10 +8,7 @@ var assocGet = require('./_assocGet');
|
||||
* @returns {*} Returns the entry value.
|
||||
*/
|
||||
function stackGet(key) {
|
||||
var data = this.__data__,
|
||||
array = data.array;
|
||||
|
||||
return array ? assocGet(array, key) : data.map.get(key);
|
||||
return this.__data__.get(key);
|
||||
}
|
||||
|
||||
module.exports = stackGet;
|
||||
|
||||
Reference in New Issue
Block a user