I am dealing with an array of IVisitView objects containing visitDate and clientName information.
export interface IVisitView {
visitDate?: Moment;
clientName?: string;
}
export class VisitView implements IVisitView {
constructor(
public visitDate?: Moment,
public clientName?: string,
) {}
}
Is there a way to transform the array so that the visitDate property is converted to a String type instead of Moment?