Files
lodash/_mapClear.js
John-David Dalton 94ba2e24e8 Bump to v4.4.0.
2016-02-15 20:25:07 -08:00

20 lines
313 B
JavaScript

import Hash from './_Hash';
import Map from './_Map';
/**
* Removes all key-value entries from the map.
*
* @private
* @name clear
* @memberOf MapCache
*/
function mapClear() {
this.__data__ = {
'hash': new Hash,
'map': Map ? new Map : [],
'string': new Hash
};
}
export default mapClear;