Skip to content

Switch better than If-else #57

@Nizar7zak

Description

@Nizar7zak

} else if (process.env.NODE_ENV === 'production') {

For many reason Switch is better than If-else in this situation.
I advice you all to read this essay, Explained everything.
https://www.geeksforgeeks.org/switch-vs-else/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions