Answer the question
In order to leave comments, you need to log in
What is the best way to split a string in an "if" statement?
There is a conditional if statement that tests several conditions:
if (typeof(mandatory) === 'string'
&& typeof(mandatory) !== null
&& typeof(expenseAmount) !== null
&& mandatory !== ''
&& expenseAmount !== '') {
console.log('done');
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question