(k)
| 30 | } |
| 31 | |
| 32 | get (k) { |
| 33 | const len = this.cache.length |
| 34 | if (!len) { |
| 35 | return |
| 36 | } |
| 37 | for (let i = 0; i < len; i++) { |
| 38 | const item = this.cache[i] |
| 39 | if (item.k === k) { |
| 40 | return item.v |
| 41 | } |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | has (k) { |
| 46 | const len = this.cache.length |
no outgoing calls
no test coverage detected