import { objType } from '../store/common/type' ; function removeNullFromObject ( object ) { if ( typeof object !== 'object' ) return ; Object . keys ( object ) . forEach ( ( key ) => { if ( object [ key ] === null ) { delete object [ key ] ; return ; } removeNullFromObject ( object [ key ] ) ; } ) ; return object ; } export default removeNullFromObject ;