containsKey(key) {
        return this.nodes_.some((node) => node.value == key);  // eslint-disable-line
    }
Whether the heap contains the given key.
@param {string} key The key to check for.
@return {boolean} Whether the heap contains the key.