"use strict"; const isDateObject = require("./is-date-object"); const ValidationError = require("@validatem/error"); module.exports = function (value) { if (!isDateObject(value)) { throw new ValidationError("Must be a Date object", { code: "validatem.is-date" }); } };