您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

_hashClear.js 281B

123456789101112131415
  1. var nativeCreate = require('./_nativeCreate');
  2. /**
  3. * Removes all key-value entries from the hash.
  4. *
  5. * @private
  6. * @name clear
  7. * @memberOf Hash
  8. */
  9. function hashClear() {
  10. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  11. this.size = 0;
  12. }
  13. module.exports = hashClear;