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

Function isKeyedCollection

assert/equal.ts:5–7  ·  view source on GitHub ↗
(x: unknown)

Source from the content-addressed store, hash-verified

3
4type KeyedCollection = Set<unknown> | Map<unknown, unknown>;
5function isKeyedCollection(x: unknown): x is KeyedCollection {
6 return x instanceof Set || x instanceof Map;
7}
8
9function prototypesEqual(a: object, b: object) {
10 const pa = Object.getPrototypeOf(a);

Callers 1

equalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected