项目原始demo,不改动
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。
 
 
 
 

17 行
382 B

  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;