test
Javascript
code posted
created at 21 Mar 17:13
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 |
/** * 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; } |
308 Bytes in 2 ms with coderay