method BinaryHeap.prototype.drainimport { BinaryHeap } from "https://deno.land/std@0.190.0/collections/mod.ts"; drain(): IterableIterator<T>Returns an iterator for retrieving and removing values from the binary heap. ReturnsIterableIterator<T>