import { assignWith , camelCase , isUndefined } from 'lodash' ; export function assign < TObject , TSource1 , TSource2 > ( target , src , src2 ? ) { return assignWith ( target , src , src2 , ( objValue , srcValue ) => isUndefined ( srcValue ) ? objValue : srcValue ) ; } export function camelCaseObjectKey ( object ) { return Object . keys ( object ) . reduce ( ( result , key ) => ( { ... result , [ camelCase ( key ) ] : object [ key ] , } ) , { } ) ; }