param object return export function validate ( object ) { const keys = Object . keys ( object ) . filter ( ( key ) => object [ key ] ) ; const result = { } ; for ( const key of keys ) { result [ key ] = object [ key ] ; } return result ; }