Open gloriaJun opened 5 years ago
const environment = { development: { isProduction: false }, production: { isProduction: true } }[process.env.NODE_ENV || 'development']; // same with // environment[process.env.NODE_ENV || 'development'];
Define the Object with key value