has(key) {
    const { entry } = this.getEntry(key);
    return entry !== undefined;
  }
Search for key and return true if it was found
Avg. Runtime: O(1)
@param {any} key
@returns {boolean} indicating whether an element
 with the specified key exists or not.