I'm reading in Todo
instances from a CSV file and Papaparse does not do dynamic conversion on dates so I can drop the object into its own constructor to do the conversion:
class Todo {
public dueDate:Date;
....
constructor(todo:Todo) {
this.dueDate = new Date(todo.dueDate);
...
}
}
Is there exists a more sugared approach to initializing the properties via the constructor