UNPKG
lodash
Version:
latest (4.17.21)
4.17.21
4.17.20
4.17.19
4.17.18
4.17.17
4.17.16
4.17.15
4.17.14
4.17.13
4.17.12
4.17.11
4.17.10
4.17.9
4.17.5
4.17.4
4.17.3
4.17.2
4.17.1
4.17.0
4.16.6
4.16.5
4.16.4
4.16.3
4.16.2
4.16.1
4.16.0
4.15.0
4.14.2
4.14.1
4.14.0
4.13.1
4.13.0
4.12.0
4.11.2
4.11.1
4.11.0
4.10.0
4.9.0
4.8.2
4.8.1
4.8.0
4.7.0
4.6.1
4.6.0
4.5.1
4.5.0
4.4.0
4.3.0
4.2.1
4.2.0
4.1.0
4.0.1
4.0.0
3.10.1
3.10.0
3.9.3
3.9.2
3.9.1
3.9.0
3.8.0
3.7.0
3.6.0
3.5.0
3.4.0
3.3.1
3.3.0
3.2.0
3.1.0
3.0.1
3.0.0
2.4.2
2.4.1
2.4.0
2.3.0
2.2.1
2.2.0
2.1.0
2.0.0
1.3.1
1.3.0
1.2.1
1.2.0
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
1.0.0-rc.3
1.0.0-rc.2
1.0.0-rc.1
0.10.0
0.9.2
0.9.1
0.9.0
0.8.2
0.8.1
0.8.0
0.7.0
0.6.1
0.6.0
0.5.2
0.5.1
0.5.0
0.5.0-rc.1
0.4.2
0.4.1
0.4.0
0.3.2
0.3.1
0.3.0
0.2.2
0.2.1
0.2.0
0.1.0
Lodash modular utilities.
lodash.com
lodash/lodash
lodash
/
_hashClear.js
16 lines
(13 loc)
•
281 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;