UNPKG

langsmith

Version:

Client library to connect to the LangSmith Observability and Evaluation Platform.

9 lines (8 loc) 279 B
export const isRecord = (value) => { return typeof value === "object" && value !== null && !Array.isArray(value); }; export const isPrimitive = (value) => { return (typeof value === "string" || typeof value === "number" || typeof value === "boolean"); };