export const isObject = (object: unknown): object is Record => { return typeof object === 'object' && object !== null && !Array.isArray(object); };