Skip to main content
Module

x/structurae/index.ts>BinaryHeap.isHeap

Data structures for high-performance JavaScript applications.
Latest
method BinaryHeap.isHeap
import { BinaryHeap } from "https://deno.land/x/structurae@4.0.1/index.ts";

Checks if a given collection is a valid binary heap.

Parameters

heap: ArrayLike<T>

Returns

boolean