# Reading env vars Write a method to read configuration values from a configuration object based on a key Example of keys as input: "profile.setting.showImage" "home.showAnalytics" ```typescript //code const config = { profile: { setting: { showImage: true } } }; const showImageVal = (key: string) => { const keyArr = key.split('.'); let finalValue; keyArr.forEach(key => { finalValue = config[key]; }) } ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up