Zen Ventzi
S. engineer building lasting relationships. On a quest for wisdom, finesse and integrity.
20 August 2020
Run in typescript playground
In such case, one of the solutions is to simply keep the !!a.aField check, and then introduce new variable/s inside the if check