@technobuddha > library > Array > Iteration
Type Alias: LookAheadOptions<T>
ts
type LookAheadOptions<T> =
| {
last: T;
}
| {
wrapAround: boolean;
};Defined in: look-ahead.ts:7
Options for lookAhead operations.
Type Parameters
| Type Parameter | Description |
|---|---|
T | The type of the items in the sequence. |
Type Declaration
ts
{
last: T;
}| Name | Type | Description | Defined in |
|---|---|---|---|
last | T | Specifies the last item in the sequence. | src/look-ahead.ts:12 |
ts
{
wrapAround: boolean;
}| Name | Type | Description | Defined in |
|---|---|---|---|
wrapAround | boolean | Determines whether the look-ahead should wrap around to the beginning when reaching the end. | src/look-ahead.ts:18 |