import { trim } from 'lodash' import { Formatable } from '../types/formatter.type' import { isBlank } from '../../string/is_blank' export const emailFormatable: Formatable = { unformat: (value: any) => { if (isBlank(value)) return null return trim(value).toLowerCase() } }