Is there a way in javascript to both assign and check for undefined (or null or whatever) in one line like this:
if (let myVar = DoSomethingAndReturnValue()) {
// DoSomethingAndReturnValue() returned a falsy value and so myVar is falsy
return
}
// myVar is now assigned with some value we can do something with it.