UNPKG

livr

Version:

Lightweight validator supporting Language Independent Validation Rules Specification

13 lines (10 loc) 248 B
const util = require('../../util'); function any_object() { return value => { if (util.isNoValue(value)) return; if (!util.isObject(value)) { return 'FORMAT_ERROR'; } }; }; module.exports = any_object;