// Validate that a value is truthy. const validatePresence = () => (key: string, newValue: T, oldValue: T) => ({ message: `${key} is missing.`, validation: Boolean(newValue), }); export default validatePresence;