Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
getGraphItemData dataProp as string
getGraphItemData(dataProp: string, data: Vaccination[]) : GraphDataItemModel[] {
return data?.map(
(item) => {
const { date } = item
const value =
return new GraphDataItemModel({
value: item[dataProp] ?? 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment