MCPcopy Create free account
hub / github.com/chavyleung/scripts / isNull

Function isNull

chavy.box.js:883–884  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

881 $.setdata(JSON.stringify(chavy_boxjs_cur_sessions), $.KEY_cursessions)
882 $.setdata(JSON.stringify(chavy_boxjs_app_subCaches), $.KEY_app_subCaches)
883 const isNull = (val) =>
884 [undefined, null, 'null', 'undefined', ''].includes(val)
885 Object.keys(datas).forEach((datkey) =>
886 $.setdata(isNull(datas[datkey]) ? '' : `${datas[datkey]}`, datkey)
887 )

Callers 1

apiRevertGlobalBakFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected