1
0
mirror of https://github.com/thangisme/notes.git synced 2024-10-31 23:27:32 -04:00
notes/node_modules/lodash/_hashClear.js
Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00

16 lines
281 B
JavaScript

var nativeCreate = require('./_nativeCreate');
/**
* Removes all key-value entries from the hash.
*
* @private
* @name clear
* @memberOf Hash
*/
function hashClear() {
this.__data__ = nativeCreate ? nativeCreate(null) : {};
this.size = 0;
}
module.exports = hashClear;