Array<T>
Array is a generic type.
TypeScript ⟩
interface Array<T> {
length: number;
// remove last element & returns it.
pop(): T | undefined;
// append new elements & return new length.
push(...items: T[]): number;
}Last updated
Was this helpful?