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

Function ownKeys

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

Source from the content-addressed store, hash-verified

22
23// Slightly faster than Reflect.ownKeys in V8 as of 12.9.202.13-rusty (2024-10-28)
24function ownKeys(obj: object) {
25 return [
26 ...Object.getOwnPropertyNames(obj),
27 ...Object.getOwnPropertySymbols(obj),
28 ];
29}
30
31function getKeysDeep(obj: object) {
32 const keys = new Set<string | symbol>();

Callers 2

getKeysDeepFunction · 0.85
equalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected