reset(
    buckets = new Array(this.initialCapacity),
    size = 0,
    collisions = 0,
    keysTrackerArray = [],
    keysTrackerIndex = 0,
  ) {
    this.buckets = buckets;
    this.size = size;
    this.collisions = collisions;
    // keyTracker* is used to keep track of the insertion order
    this.keysTrackerArray = keysTrackerArray;
    this.keysTrackerIndex = keysTrackerIndex;
  }
Reset or reinitialize all values on the hashmap.

Used for rehashing, clear and initializing the map.

@param {array} buckets - New bucket.
@param {number} size - The new size of the hashmap.
@param {number} collisions - The number of collisions.
@param {array} keysTrackerArray - The array of keys in insertion order
@param {number} keysTrackerIndex - The last index of keysTrackerArray