MCPcopy Create free account
hub / github.com/HelloCSV/HelloCSV / isEmptyCell

Function isEmptyCell

src/utils/index.ts:28–39  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

26};
27
28export 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
41export const removeDuplicates = (array: any[]) => {
42 return [...new Set(array)];

Callers 4

transformSheetFunction · 0.90
isValidMethod · 0.90
getCellDisplayValueFunction · 0.90

Calls 1

isUndefinedOrNullFunction · 0.85

Tested by

no test coverage detected