* @param {string} key * @return {*}
(key)
| 85 | * @return {*} |
| 86 | */ |
| 87 | get(key) { |
| 88 | const bucketLinkedList = this.buckets[this.hash(key)]; |
| 89 | const node = bucketLinkedList.find({ callback: (nodeValue) => nodeValue.key === key }); |
| 90 | |
| 91 | return node ? node.value.value : undefined; |
| 92 | } |
| 93 | |
| 94 | /** |
| 95 | * @param {string} key |
no test coverage detected