src/models/validators/requireEmpty.js
Consider simplifying this complex logical expression. Open
Open
if (value === null
|| value === undefined
|| value === ''
|| (Array.isArray(value) && value.length === 0)
|| (value.constructor === Object && Object.keys(value).length === 0)) {