Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_mapCacheHas.js 382B

12345678910111213141516
  1. var getMapData = require('./_getMapData');
  2. /**
  3. * Checks if a map value for `key` exists.
  4. *
  5. * @private
  6. * @name has
  7. * @memberOf MapCache
  8. * @param {string} key The key of the entry to check.
  9. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  10. */
  11. function mapCacheHas(key) {
  12. return getMapData(this, key).has(key);
  13. }
  14. module.exports = mapCacheHas;