| Leo Repp | 58b9f11 | 2021-11-22 11:57:47 +0100 | [diff] [blame^] | 1 | var nativeCreate = require('./_nativeCreate'); |
| 2 | |||||
| 3 | /** | ||||
| 4 | * Removes all key-value entries from the hash. | ||||
| 5 | * | ||||
| 6 | * @private | ||||
| 7 | * @name clear | ||||
| 8 | * @memberOf Hash | ||||
| 9 | */ | ||||
| 10 | function hashClear() { | ||||
| 11 | this.__data__ = nativeCreate ? nativeCreate(null) : {}; | ||||
| 12 | this.size = 0; | ||||
| 13 | } | ||||
| 14 | |||||
| 15 | module.exports = hashClear; | ||||