any[] array.ts
Declarations #
4 declarations
EMPTY_ARRAY #
EMPTY_ARRAY
remove_unordered #
remove_unordered
(array: any[], index: number): void Removes an element from array at index in an unordered manner.
array
type
any[]index
type
numberreturns
void to_array #
to_array
<T>(value: T): T extends readonly any[] ? T : T[] Converts value to an array if it's not already.
value
type
Treturns
T extends readonly any[] ? T : T[] to_next #
to_next
<T extends ReadonlyArray<any>>(array: T): () => ArrayElement<T> Returns a function that returns the next item in the array
in a linear sequence, looping back to index 0 when it reaches the end.
array
type
Treturns
() => ArrayElement<T>