MCPcopy Create free account
hub / github.com/circircir-circle/human_exist_device / depend

Method depend

mini_program/common/Validate.js:355–369  ·  view source on GitHub ↗

* 判断规则依赖是否存在

(param)

Source from the content-addressed store, hash-verified

353 * 判断规则依赖是否存在
354 */
355 depend(param) {
356 switch (typeof param) {
357 case 'boolean':
358 param = param
359 break
360 case 'string':
361 param = !!param.length
362 break
363 case 'function':
364 param = param()
365 default:
366 param = !0
367 }
368 return param
369 }
370
371 /**
372 * 判断输入值是否为空

Callers 1

validMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected