MCPcopy Create free account
hub / github.com/denoland/std / isKeyedCollection

Function isKeyedCollection

expect/_equal.ts:9–11  ·  view source on GitHub ↗
(x: unknown)

Source from the content-addressed store, hash-verified

7
8type KeyedCollection = Set<unknown> | Map<unknown, unknown>;
9function isKeyedCollection(x: unknown): x is KeyedCollection {
10 return x instanceof Set || x instanceof Map;
11}
12
13function constructorsEqual(a: object, b: object) {
14 return a.constructor === b.constructor ||

Callers 1

equalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected