Constructors
constructor
Type Parameters
Parameters
Accessors
available
Returns number
capacity
- get capacity(): number
- set capacity(newSize: number): void
Returns number
Parameters
Returns void
first
Returns T
isEmpty
Returns boolean
isFull
Returns boolean
last
Returns T
length
- get length(): number
- set length(newLength: number): void
Returns number
Parameters
Returns void
Methods
at
Parameters
Returns T
clear
Returns T[]
every
Parameters
Optional thisArg: unknown
Returns boolean
fill
Parameters
Returns T[]
find
Parameters
Optional thisArg: unknown
Returns unknown
indexOf
- indexOf(searchElement: T, fromIndex?: number): number
Parameters
searchElement: T
Optional fromIndex: number
Returns number
offset
Returns number
pop
Returns T
pos
Parameters
Returns T
push
Parameters
Returns T
resize
- resize(newSize: number, preferEnd?: boolean): void
Parameters
newSize: number
Optional preferEnd: boolean
Returns void
reverse
shove
Parameters
Returns T
some
Parameters
Optional thisArg: unknown
Returns boolean
toArray
Returns T[]
Static from
Type Parameters
Parameters
Optional map_fn: ((_k: T, _i: number) => T)
Optional t: unknown