The size of the container.
const container = new Vector([1, 2]);console.log(container.length); // 2
const container = new Vector([1, 2]);console.log(container.size()); // 2
Whether the container is empty.
container.clear();console.log(container.empty()); // true
Clear the container.
Inserts element to queue's end.
The container length after pushing.
The element you want to push to the front.
Removes the first element.
The element you popped.
Access the first element.
The first element.
Generated using TypeDoc
Returns
The size of the container.
Example