import * as _ from "lodash"; import { Address } from '../entities/Address'; // For now, we inject this into angular DI - but when everything is using ES6 modules this could be an import instead export class AddressUtils { addFullAddress(address: Address): Address { return { ...address, address: _.compact([address.addressLine1, address.addressLine2, address.town]).join(", ") } } }