lodash-es
Version:
The modern build of lodash exported as ES modules.
15 lines (13 loc) • 306 B
JavaScript
/**
* Gets the cached value for `key`.
*
* @private
* @name get
* @memberOf _.memoize.Cache
* @param {string} key The key of the value to get.
* @returns {*} Returns the cached value.
*/
function mapGet(key) {
return key == '__proto__' ? undefined : this.__data__[key];
}
export default mapGet;