const objectHasOneProperty = (obj: T): boolean => Object.getOwnPropertyNames(obj).length === 1; export default objectHasOneProperty;