UNPKG

deep-equality-data-structures

Version:

Javascript data structures (e.g., Map, Set) that support deep object equality

11 lines (10 loc) 229 B
/** * Interface for comparable maps/sets */ export interface Comparable<T> { equals(other: T): boolean; contains(other: T): boolean; union(other: T): T; intersection(other: T): T; difference(other: T): T; }