if (typeof(mandatory) === 'string'
&& typeof(mandatory) !== null
&& typeof(expenseAmount) !== null
&& mandatory !== ''
&& expenseAmount !== '') {
console.log('done');
}
if (
typeof(mandatory) === 'string'
&& typeof(mandatory) !== null
&& typeof(expenseAmount) !== null
&& mandatory !== ''
&& expenseAmount !== ''
) {
console.log('done');
}