Skip to main content
Module

x/ldkit/library/asynciterator.ts>AsyncIterator#range

LDkit - Linked Data query toolkit for TypeScript developers
Go to Latest
method AsyncIterator.prototype.range
Re-export
import { AsyncIterator } from "https://deno.land/x/ldkit@v0.6.3/library/asynciterator.ts";

Limits the current iterator to the given range. The current iterator may not be read anymore until the returned iterator ends.

Parameters

start: number

Index of the first item to return

end: number

Index of the last item to return

Returns

A new iterator with items in the given range