import { Prisma } from "@prisma/client"; function isPrismaObj(obj: unknown): obj is Prisma.JsonObject { return typeof obj === "object" && !Array.isArray(obj); } export function isPrismaObjOrUndefined(obj: unknown) { return isPrismaObj(obj) ? obj : undefined; } export default isPrismaObj;