UNPKG

deep-equality-data-structures

Version:

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

10 lines (9 loc) 465 B
import { Options } from './options'; /** * Static utility for doing a one-time equality check across the provided values. * @param values list whose elements will be compared to each other * @param options configuration options * @returns true if every element in `values` is equal to every other element * @throws {Error} if `values` list is empty */ export declare function areEqual<V, TxV = V>(values: V[], options?: Options<V, null, TxV, null>): boolean;