export function hasOwnProperty, Y extends PropertyKey>( obj: Record, prop: Y, ): obj is X & Record { return Object.prototype.hasOwnProperty.call(obj, prop); }