()
| 23 | return this.map.size; |
| 24 | } |
| 25 | async *entries(): AsyncIterable<[TKey, TValue]> { |
| 26 | // eslint-disable-next-line prefer-const |
| 27 | for (let [key, value] of this.map.entries()) { |
| 28 | if (is.promise(value)) { |
| 29 | value = await value; |
| 30 | } |
| 31 | if (!is.nullish(value)) { |
| 32 | yield [key, value]; |
| 33 | } |
| 34 | } |
| 35 | } |
| 36 | keys(): Iterator<TKey> { |
| 37 | return this.map.keys(); |
| 38 | } |
no test coverage detected