You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
232 B
JavaScript

"use strict";
const ValidationError = require("@validatem/error");
const isCallable = require("is-callable");
module.exports = function (value) {
if (!isCallable(value)) {
throw new ValidationError("Must be a function");
}
};