( obj: Record<string, string | undefined>, )
| 67 | } |
| 68 | |
| 69 | export function toObject( |
| 70 | obj: Record<string, string | undefined>, |
| 71 | ): Record<string, unknown> { |
| 72 | let result: Record<string, unknown> = {}; |
| 73 | Object.entries(obj).forEach(([key, value]) => { |
| 74 | result = assocPath(key.split('.'), value, result); |
| 75 | }); |
| 76 | return result; |
| 77 | } |
| 78 | |
| 79 | export const strip = reject(anyPass([isEmpty, isNil])); |
| 80 |