Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
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.

_mapCacheDelete.js 450B

123456789101112131415161718
  1. var getMapData = require('./_getMapData');
  2. /**
  3. * Removes `key` and its value from the map.
  4. *
  5. * @private
  6. * @name delete
  7. * @memberOf MapCache
  8. * @param {string} key The key of the value to remove.
  9. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  10. */
  11. function mapCacheDelete(key) {
  12. var result = getMapData(this, key)['delete'](key);
  13. this.size -= result ? 1 : 0;
  14. return result;
  15. }
  16. module.exports = mapCacheDelete;