Replace lodash with built-ins where possible to reduce bundle size (#1766)
* add tslint rule to disallow lodash.isUndefined * add tslint rule to disallow lodash.isNull * apply fixes
This commit is contained in:
@@ -14,7 +14,7 @@ export const env = {
|
||||
const envVarValue = process.env[key];
|
||||
if (envVarValue === 'true') {
|
||||
isTrue = true;
|
||||
} else if (envVarValue === 'false' || _.isUndefined(envVarValue)) {
|
||||
} else if (envVarValue === 'false' || envVarValue === undefined) {
|
||||
isTrue = false;
|
||||
} else {
|
||||
throw new Error(
|
||||
|
Reference in New Issue
Block a user