MCPcopy
hub / github.com/deepops-ai/deepops / isEmpty

Function isEmpty

ui/src/utils/validate.ts:16–26  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

14import { isArray, isObject,isEmpty as _isEmpty, isString } from 'lodash'
15
16export 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

Callers 15

UnitPickerFunction · 0.90
formatUnitFunction · 0.90
MultiRadionButtonsFunction · 0.90
ThresholdEditorFunction · 0.90
alphaFunction · 0.90
InputSelectFunction · 0.90
isSeriesDataFunction · 0.90
addParamToUrlFunction · 0.90
mapValueToTextFunction · 0.90
hasVariableFormatFunction · 0.90
equalPairsToJsonFunction · 0.90

Calls 1

isObjectFunction · 0.50

Tested by

no test coverage detected