Skip to content

If configuration object contains a falsy value it returns the defaultValue instead. #115

@bherrero

Description

@bherrero

Given that my configuration object contains something like is_logged_in: false
When I read the configuration as this.config.get('is_logged_in')
Then I will get null as I didn't define the default value.

I could work around it by just setting the default as false, but better to check if the key exists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions