This class discourages users from inversely checking the mode to determine the type of environment, e.g.
mode
const isDev = environment.mode !== 'build' // badconst isDev = environment.mode === 'dev' // good Copy
const isDev = environment.mode !== 'build' // badconst isDev = environment.mode === 'dev' // good
You should also not check against "unknown" specifically. It's a placeholder for more possible environment types.
"unknown"
Optional
This class discourages users from inversely checking the
modeto determine the type of environment, e.g.You should also not check against
"unknown"specifically. It's a placeholder for more possible environment types.