mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Move internal modules to “internal” folder.
This commit is contained in:
15
.internal/hashClear.js
Normal file
15
.internal/hashClear.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import nativeCreate from './.internal/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;
|
||||
Reference in New Issue
Block a user