I need to check if auth.runtime.status
is equal 200, but something the auth.runtime
is undifend, is there more elegant way to do it in nodejs
if (auth.runtime) {
if (auth.runtime.status == 200 && auth.application.status == 200)
...
}
}
is there a better way to write it?
lets assume I've more nested if