Utilisez la propriété OBJ en elle-même
const obj = {
key1: "it ",
key2: () => this.key1 + " works!";
}
alert(obj.key2())
Enthusiastic Echidna
const obj = {
key1: "it ",
key2: () => this.key1 + " works!";
}
alert(obj.key2())