mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 16:47:49 +00:00
Bump to v4.12.0.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
define(['./_assocHas'], function(assocHas) {
|
||||
define([], function() {
|
||||
|
||||
/**
|
||||
* Checks if a stack value for `key` exists.
|
||||
@@ -10,10 +10,7 @@ define(['./_assocHas'], function(assocHas) {
|
||||
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
||||
*/
|
||||
function stackHas(key) {
|
||||
var data = this.__data__,
|
||||
array = data.array;
|
||||
|
||||
return array ? assocHas(array, key) : data.map.has(key);
|
||||
return this.__data__.has(key);
|
||||
}
|
||||
|
||||
return stackHas;
|
||||
|
||||
Reference in New Issue
Block a user