/** * Checks whether an object has the standard object prototype or no prototype. * * @param value - Object to inspect. */ export function isPlainObject(value: object): value is Record { const proto = Object.getPrototypeOf(value) return proto === Object.prototype || proto === null }