Skip to main content

ES Relative indexing method

Less than 1 minutefeaturees-proposalmissing-example

ES Relative indexing methodopen in new window

Types

interface Array<T> {
  at(index: number): T | undefined;
}

interface String {
  at(index: number): string | undefined;
}

interface TypedArray {
  at(index: number): number | undefined;
}

Entry points

core-js/proposals/relative-indexing-method