Skip to main content
Module

x/collections/vector.ts>Vector#get

Collection data structures that are not standard built-in objects in JavaScript. This includes a vector (double-ended queue), binary heap (priority queue), binary search tree, and a red black tree.
Latest
method Vector.prototype.get
import { Vector } from "https://deno.land/x/collections@0.12.1/vector.ts";

Returns the value at the given index. If the value is negative, it will be subtracted from the end. The index 0 would return the first value in the vector. The index -1 would return the last value in the vector.

Parameters

index: number

Returns

T | undefined