I would like test my Array (input value) before submit my form.
My array with value :
const fields = [
  this.state.workshopSelected,
  this.state.countrySelected,
  this.state.productionTypeSelected,
  this.state.numEmployeesSelected,
  this.state.startAt
];
I've try this :
_.forEach(fields, (field) => {
  if (field === null) {
    return false;
  }
});
alert('Can submit !');
...
I think my problem is because i don't use Promise. I've try to test with Promise.all(fields).then(());, but i'm always in then.
Anyone have idea ?
Thank you :)
 
     
     
     
     
    