UNPKG

javascript-priority-queue

Version:

JavaScript implementation of PriorityQueue (using Min Heap or Max Heap)

11 lines (10 loc) 261 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Item { constructor(value, priority, head = false) { this.value = value; this.priority = priority; this.isHead = head; } } exports.default = Item;