UNPKG

joshkaposh-graph

Version:

A collection of general purpose graph data structures and traversal algorithms

10 lines (9 loc) 229 B
export class MinScored<K, T> { constructor(public k: K, public t: T) { } [Symbol.toPrimitive]() { return this.k } [Symbol.iterator]() { return [this.k, this.t][Symbol.iterator](); } }