For readability's sake, I often find myself declaring new variables for data I already have in hand, and was wondering, does this have any major impact in performance?
Example of what I do:
const isAdult = this.data.person.age >= 18;
const hasChildren = this.data.person.hasChildren;
if (isAdult && hasChildren) {}
Instead of doing:
if(this.data.person.age >= 18 && this.data.person.hasChildren) {}