Skip to content

IndexRangeIterator

Defined in: .work/repos/edinburgh/src/indexes.ts:56

Iterator for range queries on indexes. Handles common iteration logic for both primary and unique indexes. Extends built-in Iterator to provide map/filter/reduce/toArray/etc.

  • Iterator<ITEM>

ITEM

readonly [toStringTag]: string

Defined in: site/node_modules/typescript/lib/lib.es2025.iterator.d.ts:132

Iterator.[toStringTag]

[iterator](): this

Defined in: .work/repos/edinburgh/src/indexes.ts:65

this

Iterator.[iterator]


next(): IteratorResult<ITEM>

Defined in: .work/repos/edinburgh/src/indexes.ts:67

IteratorResult<ITEM>

Iterator.next


count(): number

Defined in: .work/repos/edinburgh/src/indexes.ts:83

number


fetch(): ITEM

Defined in: .work/repos/edinburgh/src/indexes.ts:89

ITEM


optional return(value?): IteratorResult<ITEM, undefined>

Defined in: site/node_modules/typescript/lib/lib.es2015.iterable.d.ts:42

undefined

IteratorResult<ITEM, undefined>

Iterator.return


optional throw(e?): IteratorResult<ITEM, undefined>

Defined in: site/node_modules/typescript/lib/lib.es2015.iterable.d.ts:43

any

IteratorResult<ITEM, undefined>

Iterator.throw


map<U>(callbackfn): IteratorObject<U, undefined, unknown>

Defined in: site/node_modules/typescript/lib/lib.es2025.iterator.d.ts:48

Creates an iterator whose values are the result of applying the callback to the values from this iterator.

U

(value, index) => U

A function that accepts up to two arguments to be used to transform values from the underlying iterator.

IteratorObject<U, undefined, unknown>

Iterator.map


filter<S>(predicate): IteratorObject<S, undefined, unknown>

Defined in: site/node_modules/typescript/lib/lib.es2025.iterator.d.ts:54

Creates an iterator whose values are those from this iterator for which the provided predicate returns true.

S

(value, index) => value is S

A function that accepts up to two arguments to be used to test values from the underlying iterator.

IteratorObject<S, undefined, unknown>

Iterator.filter

filter(predicate): IteratorObject<ITEM, undefined, unknown>

Defined in: site/node_modules/typescript/lib/lib.es2025.iterator.d.ts:60

Creates an iterator whose values are those from this iterator for which the provided predicate returns true.

(value, index) => unknown

A function that accepts up to two arguments to be used to test values from the underlying iterator.

IteratorObject<ITEM, undefined, unknown>

Iterator.filter


take(limit): IteratorObject<ITEM, undefined, unknown>

Defined in: site/node_modules/typescript/lib/lib.es2025.iterator.d.ts:66

Creates an iterator whose values are the values from this iterator, stopping once the provided limit is reached.

number

The maximum number of values to yield.

IteratorObject<ITEM, undefined, unknown>

Iterator.take


drop(count): IteratorObject<ITEM, undefined, unknown>

Defined in: site/node_modules/typescript/lib/lib.es2025.iterator.d.ts:72

Creates an iterator whose values are the values from this iterator after skipping the provided count.

number

The number of values to drop.

IteratorObject<ITEM, undefined, unknown>

Iterator.drop


flatMap<U>(callback): IteratorObject<U, undefined, unknown>

Defined in: site/node_modules/typescript/lib/lib.es2025.iterator.d.ts:78

Creates an iterator whose values are the result of applying the callback to the values from this iterator and then flattening the resulting iterators or iterables.

U

(value, index) => Iterator<U, unknown, undefined> | Iterable<U, unknown, undefined>

A function that accepts up to two arguments to be used to transform values from the underlying iterator into new iterators or iterables to be flattened into the result.

IteratorObject<U, undefined, unknown>

Iterator.flatMap


reduce(callbackfn): ITEM

Defined in: site/node_modules/typescript/lib/lib.es2025.iterator.d.ts:85

Calls the specified callback function for all the elements in this iterator. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

(previousValue, currentValue, currentIndex) => ITEM

A function that accepts up to three arguments. The reduce method calls the callbackfn function one time for each element in the iterator.

ITEM

Iterator.reduce

reduce(callbackfn, initialValue): ITEM

Defined in: site/node_modules/typescript/lib/lib.es2025.iterator.d.ts:86

(previousValue, currentValue, currentIndex) => ITEM

ITEM

ITEM

Iterator.reduce

reduce<U>(callbackfn, initialValue): U

Defined in: site/node_modules/typescript/lib/lib.es2025.iterator.d.ts:93

Calls the specified callback function for all the elements in this iterator. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

U

(previousValue, currentValue, currentIndex) => U

A function that accepts up to three arguments. The reduce method calls the callbackfn function one time for each element in the iterator.

U

If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of a value from the iterator.

U

Iterator.reduce


toArray(): ITEM[]

Defined in: site/node_modules/typescript/lib/lib.es2025.iterator.d.ts:98

Creates a new array from the values yielded by this iterator.

ITEM[]

Iterator.toArray


forEach(callbackfn): void

Defined in: site/node_modules/typescript/lib/lib.es2025.iterator.d.ts:104

Performs the specified action for each element in the iterator.

(value, index) => void

A function that accepts up to two arguments. forEach calls the callbackfn function one time for each element in the iterator.

void

Iterator.forEach


some(predicate): boolean

Defined in: site/node_modules/typescript/lib/lib.es2025.iterator.d.ts:112

Determines whether the specified callback function returns true for any element of this iterator.

(value, index) => unknown

A function that accepts up to two arguments. The some method calls the predicate function for each element in this iterator until the predicate returns a value true, or until the end of the iterator.

boolean

Iterator.some


every(predicate): boolean

Defined in: site/node_modules/typescript/lib/lib.es2025.iterator.d.ts:120

Determines whether all the members of this iterator satisfy the specified test.

(value, index) => unknown

A function that accepts up to two arguments. The every method calls the predicate function for each element in this iterator until the predicate returns false, or until the end of this iterator.

boolean

Iterator.every


find<S>(predicate): S

Defined in: site/node_modules/typescript/lib/lib.es2025.iterator.d.ts:129

Returns the value of the first element in this iterator where predicate is true, and undefined otherwise.

S

(value, index) => value is S

find calls predicate once for each element of this iterator, in order, until it finds one where predicate returns true. If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.

S

Iterator.find

find(predicate): ITEM

Defined in: site/node_modules/typescript/lib/lib.es2025.iterator.d.ts:130

(value, index) => unknown

ITEM

Iterator.find


[dispose](): void

Defined in: site/node_modules/typescript/lib/lib.esnext.disposable.d.ts:34

void

Iterator.[dispose]