(value: any)
| 26 | }; |
| 27 | |
| 28 | export function isEmptyCell(value: any): boolean { |
| 29 | if (isUndefinedOrNull(value)) { |
| 30 | return true; |
| 31 | } |
| 32 | if (typeof value === 'string') { |
| 33 | return value.trim() === ''; |
| 34 | } |
| 35 | if (Array.isArray(value)) { |
| 36 | return value.length === 0; |
| 37 | } |
| 38 | return false; |
| 39 | } |
| 40 | |
| 41 | export const removeDuplicates = (array: any[]) => { |
| 42 | return [...new Set(array)]; |
no test coverage detected