MCPcopy Index your code
hub / github.com/bitnbytesio/node-input-validator / validateRequired

Method validateRequired

lib/rules.js:41–48  ·  view source on GitHub ↗

* * @param {*} field * @param {*} value

(field, value)

Source from the content-addressed store, hash-verified

39 * @param {*} value
40 */
41 async validateRequired(field, value) {
42
43 if (this.isEmpty(value)) {
44 return false;
45 }
46
47 return true;
48 }
49
50 /**
51 *

Callers

nothing calls this directly

Calls 1

isEmptyMethod · 0.95

Tested by

no test coverage detected