re: Optional Chaining may be coming to JavaScript VIEW POST

FULL DISCUSSION
 

Wow this is awesome. I've wanted this forever. The next thing I would want is this for arbitrary conditionals such as findIndex. If findIndex returns -1 consider it errored.

code of conduct - report abuse