Exemple angulaire coquerscisant nul

// check if param is null if not, assign ParamValue to variable
  start = startDateParam ?? null;
  end   = endDateParam   ?? start ?? null;
  
// you also can assign a default value
  start = startDateParam ?? moment().toDate();
  end   = endDateParam   ?? moment().add(1, 'day').toDate();
Alex Latorre