MCPcopy Create free account
hub / github.com/CoderOpen/waimai / isDef

Function isDef

front/wxcomponents/vant/common/utils.js:1–3  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1export function isDef(value) {
2 return value !== undefined && value !== null;
3}
4export function isObj(x) {
5 const type = typeof x;
6 return x !== null && (type === 'object' || type === 'function');

Callers 1

addUnitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected