new EquivMap(pairs?: Iterable<Pair<K, V>> | null, opts?: Partial<EquivMapOpts<K>>): EquivMap
Creates a new instance with optional initial key-value pairs and provided options. If no opts are given, uses ArraySet for storing canonical keys and {@link @thi.ng/equiv#equiv} for checking key equivalence.
The key & value args given the callback fn MUST be treated as readonly/immutable. This could be enforced via TS, but would break ES6 Map interface contract.
Creates a new instance with optional initial key-value pairs and provided options. If no
opts
are given, usesArraySet
for storing canonical keys and {@link @thi.ng/equiv#equiv} for checking key equivalence.