* Returns the value stored for the exact tuple key, if any. * @param {K} args tuple * @returns {V | undefined} the value
(...args)
| 102 | * @returns {V | undefined} the value |
| 103 | */ |
| 104 | get(...args) { |
| 105 | /** @type {WeakTupleMap<K, V> | undefined} */ |
| 106 | let node = this; |
| 107 | for (let i = 0; i < args.length; i++) { |
| 108 | node = node._peek(/** @type {ArrayElement<K>} */ (args[i])); |
| 109 | if (node === undefined) return; |
| 110 | } |
| 111 | return node._getValue(); |
| 112 | } |
| 113 | |
| 114 | /** |
| 115 | * Returns an existing value for the tuple or computes, stores, and returns a |
no test coverage detected