UNPKG

@codeparticle/formal

Version:

A <2kb library for validating data of any kind

20 lines (18 loc) 492 B
import { createRule } from "./chunk-DDICIM7S.mjs"; // src/rules/is-object.ts var isObject = createRule({ condition: (obj) => !!obj && typeof obj === `object` && !Array.isArray(obj) && obj === Object(obj), message: (notObj) => `Value must be an object, but has type ${typeof notObj}` }); export { isObject }; /** * @file Check to ensure that the supplied value is an object. * @name isObject.js * @author Nick Krause * @license MIT */ //# sourceMappingURL=chunk-IEQIME6M.mjs.map