export const array = Array.isArray; export function primitive(s: any): s is string | number { return typeof s === "string" || typeof s === "number" || s instanceof String || s instanceof Number; }