(key: TKey)
| 346 | if (index && index.supports(`gt`)) { |
| 347 | // Use index optimization |
| 348 | const filterFn = (key: TKey): boolean => { |
| 349 | const value = collection.get(key) |
| 350 | if (value === undefined) { |
| 351 | return false |
| 352 | } |
| 353 | return whereFilter?.(value) ?? true |
| 354 | } |
| 355 | |
| 356 | // Take the keys that match the filter and limit |
| 357 | // if no limit is provided `index.keyCount` is used, |
no test coverage detected