main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
279 bytes
|
Rev | Line | |
---|
[d565449] | 1 | import nativeCreate from './_nativeCreate.js';
|
---|
| 2 |
|
---|
| 3 | /**
|
---|
| 4 | * Removes all key-value entries from the hash.
|
---|
| 5 | *
|
---|
| 6 | * @private
|
---|
| 7 | * @name clear
|
---|
| 8 | * @memberOf Hash
|
---|
| 9 | */
|
---|
| 10 | function hashClear() {
|
---|
| 11 | this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
---|
| 12 | this.size = 0;
|
---|
| 13 | }
|
---|
| 14 |
|
---|
| 15 | export default hashClear;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.