( obj: object, key: string | symbol, value: any, writable = false, )
| 150 | } |
| 151 | |
| 152 | export const def = ( |
| 153 | obj: object, |
| 154 | key: string | symbol, |
| 155 | value: any, |
| 156 | writable = false, |
| 157 | ): void => { |
| 158 | Object.defineProperty(obj, key, { |
| 159 | configurable: true, |
| 160 | enumerable: false, |
| 161 | writable, |
| 162 | value, |
| 163 | }) |
| 164 | } |
| 165 | |
| 166 | /** |
| 167 | * "123-foo" will be parsed to 123 |
no outgoing calls
no test coverage detected