/**
 * Check if an object has the given property in a type-safe way.
 */ export default function hasOwnProperty < X extends Record < string , unknown > , Y extends PropertyKey > ( obj , prop ) { return Object . prototype . hasOwnProperty . call ( obj , prop ) ; }