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

Function getKeysDeep

assert/equal.ts:31–42  ·  view source on GitHub ↗
(obj: object)

Source from the content-addressed store, hash-verified

29}
30
31function getKeysDeep(obj: object) {
32 const keys = new Set<string | symbol>();
33
34 while (obj !== Object.prototype && obj !== Array.prototype && obj != null) {
35 for (const key of ownKeys(obj)) {
36 keys.add(key);
37 }
38 obj = Object.getPrototypeOf(obj);
39 }
40
41 return keys;
42}
43
44// deno-lint-ignore no-explicit-any
45const Temporal = (globalThis as any).Temporal ?? Object.create(null);

Callers 1

equalFunction · 0.85

Calls 2

ownKeysFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected