2016-05-07 11:49:46 -07:00
|
|
|
define([], function() {
|
2015-12-16 17:53:20 -08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Checks if a stack value for `key` exists.
|
|
|
|
|
*
|
|
|
|
|
* @private
|
|
|
|
|
* @name has
|
|
|
|
|
* @memberOf Stack
|
|
|
|
|
* @param {string} key The key of the entry to check.
|
|
|
|
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
|
|
|
*/
|
|
|
|
|
function stackHas(key) {
|
2016-05-07 11:49:46 -07:00
|
|
|
return this.__data__.has(key);
|
2015-12-16 17:53:20 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return stackHas;
|
|
|
|
|
});
|