I tried using it like this:
const obj = {
key1: "value",
key2: obj.key1
}
but give ReferenceError: Cannot access 'flags' before initialization
error.
How can I do that?
I tried using it like this:
const obj = {
key1: "value",
key2: obj.key1
}
but give ReferenceError: Cannot access 'flags' before initialization
error.
How can I do that?