const getPrototypeOf = Object.getPrototypeOf
const getConstructor = (x: any): any => (x == null ? null : x.constructor)
const getPrototypeConstructor = (x: any) =>
x == null ? null : getConstructor(getPrototypeOf(x))
export { getPrototypeOf, getConstructor, getPrototypeConstructor }