MCPcopy Index your code
hub / github.com/tinyplex/tinybase / getCellOrValueType

Function getCellOrValueType

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:974–986  ·  view source on GitHub ↗
(cellOrValue)

Source from the content-addressed store, hash-verified

972 return objFreeze(indexes);
973});
974var getCellOrValueType = (cellOrValue) => {
975 if (isNull(cellOrValue)) {
976 return NULL;
977 }
978 if (isArray(cellOrValue)) {
979 return ARRAY;
980 }
981 if (isObject(cellOrValue)) {
982 return OBJECT;
983 }
984 const type = getTypeOf(cellOrValue);
985 return isTypeStringOrBoolean(type) || type == NUMBER && isFiniteNumber(cellOrValue) ? type : void 0;
986};
987var isCellOrValueOrUndefined = (cellOrValue) => isUndefined(cellOrValue) || !isUndefined(getCellOrValueType(cellOrValue));
988var isJsonType = (type) => type == OBJECT || type == ARRAY;
989var encodeIfJson = (value) => isObject(value) || isArray(value) ? JSON_PREFIX + jsonString(value) : value;

Callers 5

isCellOrValueOrUndefinedFunction · 0.70
getValidatedCellFunction · 0.70
getValidatedValueFunction · 0.70
writeGroupRowFunction · 0.70

Calls 5

isNullFunction · 0.70
isArrayFunction · 0.70
isObjectFunction · 0.70
getTypeOfFunction · 0.70
isTypeStringOrBooleanFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…