import { primitive } from "./interfaces"; export function isPrimitive(val: any): val is primitive { return (val === null || val === undefined || typeof (val) === "string" || typeof (val) === "number" || typeof (val) === "boolean"); }