-1

I have to access value in the same object like this:

export const container = {
    envProduction: false,
    domain: 'http://localhost:3000',
    api:{
        signUp :this.domain+'/sign/up',
        signIn :this.domain+'/sign/in',
     ...
    },
};

console.log(container.api.signIn) // undefined

But got issue that this.domain in undefined. Is it possible to do it without returning object function?

Alexey
  • 13
  • 2

0 Answers0