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

Function isObj

front/wxcomponents/vant/common/utils.js:4–7  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

2 return value !== undefined && value !== null;
3}
4export function isObj(x) {
5 const type = typeof x;
6 return x !== null && (type === 'object' || type === 'function');
7}
8export function isNumber(value) {
9 return /^\d+(\.\d+)?$/.test(value);
10}

Callers 2

enterFunction · 0.90
leaveFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected