Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
export
function
isDef(value) {
2
return
value !== undefined && value !== null;
3
}
4
export
function
isObj(x) {
5
const
type
= typeof x;
6
return
x !== null && (
type
===
'object'
||
type
===
'function'
);
Callers
1
addUnit
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected