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.
Insert element to stack's end.
The element you want to push to the back.
The container length after erasing.
Removes the end element.
The element you popped.
Accesses the end element.
The last element.
Generated using TypeDoc
Returns
The size of the container.
Example