It would be more useful if all initialized values were automatically tested against null and undefined, failing the test if any value does not pass the test. Any other value (including 0, "" or false) will pass the test.
if (let oneDate = getOneDate(), anotherDate = getAnotherDate(); oneDate.getDay() >= 5) {
// ...
}
Here, if oneDate or anotherDate is null | undefined, the test fails. Otherwise, if both have values, check if oneDate.getDay () >= 5
Perhaps where could be used instead of ;.
if (let oneDate = getOneDate() where oneDate.getDay() >= 5) {
// ...
}