param path param value param obj export function makeObject ( path , value , obj = { } ) { if ( path . includes ( '.' ) ) { const route = path . split ( '.' ) ; const lastKey = route . pop ( ) as string ; let reference = obj ; for ( const key of route ) { if ( ! reference [ key ] ) reference [ key ] = { } ; reference = reference [ key ] as Record < string , unknown > ; } reference [ lastKey ] = value ; } else { obj [ path ] = value ; } return obj ; }