I've knocked up a simple calculator in vanilla JS. However when the user enters a 0 the calculation does nothing. I'd expect it to take 0 for example x it by 10 and give the answer 10. As an example. I'm guessing this line is stopping 0. Any ideas?
const isValid = field => (field && field !== '' && !isNaN(field));