( source?: T, )
| 36 | * Create a null-prototype object, optionally copying from source. |
| 37 | */ |
| 38 | export function createNullProtoObject<T extends object>( |
| 39 | source?: T, |
| 40 | ): { [K in keyof T]: T[K] } { |
| 41 | return ( |
| 42 | source |
| 43 | ? safeObjectMerge(source as Record<string, unknown>, undefined) |
| 44 | : Object.create(null) |
| 45 | ) as { [K in keyof T]: T[K] } |
| 46 | } |
no test coverage detected