MCPcopy
hub / github.com/vuejs/composition-api / def

Function def

src/utils/utils.ts:30–37  ·  view source on GitHub ↗
(obj: Object, key: string, val: any, enumerable?: boolean)

Source from the content-addressed store, hash-verified

28}
29
30export function def(obj: Object, key: string, val: any, enumerable?: boolean) {
31 Object.defineProperty(obj, key, {
32 value: val,
33 enumerable: !!enumerable,
34 writable: true,
35 configurable: true,
36 })
37}
38
39export function hasOwn(obj: Object, key: PropertyKey): boolean {
40 return Object.hasOwnProperty.call(obj, key)

Callers 4

initSetupFunction · 0.90
proxyRefsFunction · 0.90
mockReactivityDeepFunction · 0.90
markRawFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected