(fields: readonly string[])
| 11 | * Create an object with fields as keys and true values. |
| 12 | */ |
| 13 | export function fieldsToSelectObject(fields: readonly string[]): Record<string, boolean> { |
| 14 | return Object.fromEntries(fields.map((f) => [f, true])); |
| 15 | } |
| 16 | |
| 17 | /** |
| 18 | * Checks if the given value is an empty plain object. |
no outgoing calls
no test coverage detected