Protected Optional_toThe converter used to transform a raw element (R) into a public element (E).
Get the number of stored elements.
Current size.
Protected_createProtected_createProtected_getProtected_index(Protected) Find the index of a target element using the equality function.
Element to search for.
Index or -1 if not found.
Returns an iterator over the structure's elements.
Rest...args: unknown[]Optional iterator arguments forwarded to the internal iterator.
An IterableIterator<E> that yields the elements in traversal order.
Delete the first occurrence of a specific element.
Element to remove (using the configured equality).
True if an element was removed.
Finds the first element that satisfies the predicate and returns it.
Finds the first element of type S (a subtype of E) that satisfies the predicate and returns it.
The matched element typed as S, or undefined if not found.
Checks whether a strictly-equal element exists in the structure.
The element to test with === equality.
true if an equal element is found; otherwise false.
Push one element onto the top.
Element to push.
True when pushed.
Staticfrom
LIFO stack with array storage and optional record→element conversion.
Remarks
Time O(1), Space O(1)
Example
Example
Example
Example
Example
Example
Example