method BinaryHeap.fromimport { BinaryHeap } from "https://dotland.deno.dev/std@0.181.0/collections/binary_heap.ts"; from<T>(collection: ArrayLike<T> | Iterable<T> | BinaryHeap<T>): BinaryHeap<T>Creates a new binary heap from an array like or iterable object. from<T>(collection: ArrayLike<T> | Iterable<T> | BinaryHeap<T>, options: { compare?: (a: T, b: T) => number; }): BinaryHeap<T>from<T, U, V>(collection: ArrayLike<T> | Iterable<T> | BinaryHeap<T>, options: { compare?: (a: U, b: U) => number; map: (value: T, index: number) => U; thisArg?: V; }): BinaryHeap<U>Creates a new binary heap from an array like or iterable object. Type ParametersTParameterscollection: ArrayLike<T> | Iterable<T> | BinaryHeap<T>ReturnsBinaryHeap<T>Type ParametersTParameterscollection: ArrayLike<T> | Iterable<T> | BinaryHeap<T>options: { compare?: (a: T, b: T) => number; }ReturnsBinaryHeap<T>Type ParametersTUVParameterscollection: ArrayLike<T> | Iterable<T> | BinaryHeap<T>options: { compare?: (a: U, b: U) => number; map: (value: T, index: number) => U; thisArg?: V; }ReturnsBinaryHeap<U>