Aller au contenu principal

Indexable

Index

Interfaces

Interfaces

Parameters

Parameters<T, Index>:

Type parameters

  • T
  • Index: number | bigint

indexType

indexType: Index extends number ? number : Index extends bigint ? bigint : never

Index type

at

  • Returns the value at the index

indexOf

  • indexOf(value: T): Option<Index>
  • Returns the integer index of a value

optionalrange

  • range(start: T, end: T): Range<T>
  • Returns an Iterable starting from start to end. If start or end is not in range then returns an empty iterable.

optionalrangeSize

  • rangeSize(start: T, end: T): Index
  • Returns the size of a range. If start or end is not in range then returns 0.

Page Options