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:
@@ -39,7 +39,7 @@ export const fetchUtils = {
|
||||
|
||||
function queryStringFromQueryParams(queryParams?: object): string {
|
||||
// if params are undefined or empty, return an empty string
|
||||
if (_.isUndefined(queryParams) || _.isEmpty(queryParams)) {
|
||||
if (queryParams === undefined || _.isEmpty(queryParams)) {
|
||||
return '';
|
||||
}
|
||||
// stringify the formatted object
|
||||
|
Reference in New Issue
Block a user