MCPcopy
hub / github.com/vitest-dev/vitest / getOwnProperties

Function getOwnProperties

packages/utils/src/helpers.ts:182–189  ·  view source on GitHub ↗
(obj: any)

Source from the content-addressed store, hash-verified

180}
181
182export function getOwnProperties(obj: any): (string | symbol)[] {
183 const ownProps = new Set<string | symbol>()
184 if (isFinalObj(obj)) {
185 return []
186 }
187 collectOwnProperties(obj, ownProps)
188 return Array.from(ownProps)
189}
190
191const defaultCloneOptions: CloneOptions = { forceWritable: false }
192

Callers 2

replaceAsymmetricMatcherFunction · 0.90
cloneFunction · 0.85

Calls 2

isFinalObjFunction · 0.85
collectOwnPropertiesFunction · 0.70

Tested by

no test coverage detected