// Lightweight isObject check export const isObject = (val: unknown) => typeof val === 'object' && val !== null;