MCPcopy Create free account
hub / github.com/apitable/apitable / stringToArray

Function stringToArray

packages/room-server/src/shared/helpers/fusion.helper.ts:69–73  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

67};
68
69export const stringToArray = (value: string) => {
70 if (isNull(value)) return null;
71 const valueArray = Array.isArray(value) ? value : value.split(',');
72 return valueArray.filter(v => !isNull(v));
73};
74
75export const integerStringToArray = (value: string) => {
76 if (isNull(value)) return null;

Callers 5

CascaderQueryRoClass · 0.90
DatasheetPackRoClass · 0.90
RecordQueryRoClass · 0.90
RecordDeleteRoClass · 0.90

Calls 2

isNullFunction · 0.85
filterMethod · 0.45

Tested by

no test coverage detected