mapGet.js 308 B

1234567891011121314
  1. /**
  2. * Gets the cached value for `key`.
  3. *
  4. * @private
  5. * @name get
  6. * @memberOf _.memoize.Cache
  7. * @param {string} key The key of the value to get.
  8. * @returns {*} Returns the cached value.
  9. */
  10. function mapGet(key) {
  11. return key == '__proto__' ? undefined : this.__data__[key];
  12. }
  13. module.exports = mapGet;