(obj: Object, key: string, val: any, enumerable?: boolean)
| 28 | } |
| 29 | |
| 30 | export 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 | |
| 39 | export function hasOwn(obj: Object, key: PropertyKey): boolean { |
| 40 | return Object.hasOwnProperty.call(obj, key) |
no outgoing calls
no test coverage detected