GoScrobble/web/node_modules/lodash-es/_hashClear.js

16 lines
279 B
JavaScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
import nativeCreate from './_nativeCreate.js';
/**
* Removes all key-value entries from the hash.
*
* @private
* @name clear
* @memberOf Hash
*/
function hashClear() {
this.__data__ = nativeCreate ? nativeCreate(null) : {};
this.size = 0;
}
export default hashClear;