(value)
| 35 | } |
| 36 | |
| 37 | export function isEmptyValue(value) { |
| 38 | if (isNull(value)) { |
| 39 | return true; |
| 40 | } |
| 41 | |
| 42 | if ((typeof value === 'string') || (Array.isArray(value))) { |
| 43 | return value.length === 0; |
| 44 | } |
| 45 | |
| 46 | if (typeof value === 'object') { |
| 47 | return isEmptyObject(value); |
| 48 | } |
| 49 | |
| 50 | return false; |
| 51 | } |
| 52 | |
| 53 | export function isEmptyObject(obj) { |
| 54 | if (isNull(obj)) { |
no test coverage detected