Given
const foo = pickEnv({
production: 'foo',
develop: 'foo_dev'
})
If current env is staging, foo will be null, which is not expected.
Expected
throws if variable is undefined as no env is matched
Suggestion
Maybe an option to control this behavior is just fine
Given
If current env is
staging,foowill benull, which is not expected.Expected
throws if variable is undefined as no env is matched
Suggestion
Maybe an option to control this behavior is just fine