Skip to content

@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 ParameterDescription
TThe type of the items in the sequence.

Type Declaration

ts
{
  last: T;
}
NameTypeDescriptionDefined in
lastTSpecifies the last item in the sequence.src/look-ahead.ts:12
ts
{
  wrapAround: boolean;
}
NameTypeDescriptionDefined in
wrapAroundbooleanDetermines whether the look-ahead should wrap around to the beginning when reaching the end.src/look-ahead.ts:18