var individual = {
announceIdentity() {
console.log(this.identity);
},
get firstID() {
return "Superman";
}
};
individual.announceIdentity.identification // "identity"
individual.firstID.identifier // "get firstID"
I recently came across a scenario where individual.firstID.identifier
was the expected result
get firstID
However, Babel rendered undefined
instead, leaving me in deep thought!