Implement hashmap data structure using vanilla JavaScript (Node) as part of The Odin Project's "Full Stack JavaScript" course.
MIT License
0
stars
0
forks
source link
get the values in the hashmap, in each of the buckets with `values()` method. fix bug with `.keys()` implementation where it created a 2D array instead of 1D. #20
this is implemented by traversing each of the buckets (linked list) within the linked list in the same way as .keys() method. although we violate DRY, this avoids having to do 3 loops.
used ... destructuring syntax to fix bug where 2D array was created with .keys() previously, but what was required was a 1D array.
this is implemented by traversing each of the buckets (linked list) within the linked list in the same way as
.keys()
method. although we violate DRY, this avoids having to do 3 loops.used
...
destructuring syntax to fix bug where 2D array was created with.keys()
previously, but what was required was a 1D array.fixes #16