server/validation/isEmpty.js
Consider simplifying this complex logical expression. Open
Open
if (value === undefined || value === null || (typeof value === 'object' && Object.keys(value).length === 0) || (typeof value === 'string' && value.trim().length === 0)) {
return true;
}