(value)
| 14 | import { isArray, isObject,isEmpty as _isEmpty, isString } from 'lodash' |
| 15 | |
| 16 | export function isEmpty(value){ |
| 17 | if(value === null || (isString(value) && value.trim() === '') || value === undefined){ |
| 18 | return true |
| 19 | } |
| 20 | |
| 21 | if (isArray(value) || isObject(value)){ |
| 22 | return _isEmpty(value) |
| 23 | } |
| 24 | |
| 25 | return false |
| 26 | } |
| 27 | |
| 28 | |
| 29 |
no test coverage detected