Skip to main content
Module

x/collections/vector.ts>Vector#toArray

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.toArray
import { Vector } from "https://deno.land/x/collections@0.12.1/vector.ts";

Converts the vector to an array. It's recommended to use this instead of Array.from because this method is significantly faster.