isObject
isObjectPossible errors:
If provided Verificable is not an object:
Verificable is not an object:{
type: "isObject",
path: [/* ... */]
}Examples:
const { asVerificable, isValid, isObject } = require("verifica");Null or undefined is not considered an object:
const verificable = asVerificable(null);
isValid(verificable, isObject); // falseString value is not considered an object as well:
Objects are matching:
Arrays are considered objects as well:
Last updated