Title / Description
Code /** * 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. */ has(key) { const { entry } = this.getEntry(key); return entry !== undefined; }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code