Created
June 10, 2020 13:43
-
-
Save parwatcodes/eed03545296b632f2a7207aea2edc8a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const weeklyTimeSheetData = [ | |
{ | |
id: "P-011", | |
taskId: "T-011", | |
timeEntriesForWeek: {} | |
}, | |
{ | |
id: "P-012", | |
taskId: "T-70", | |
timeEntriesForWeek: {} | |
}, { | |
id: "P-012", | |
taskId: "Task 90", | |
timeEntriesForWeek: {} | |
}, { | |
id: "P-012", | |
taskId: "T-100", | |
timeEntriesForWeek: {} | |
}, { | |
id: "P-013", | |
taskId: "T-70", | |
timeEntriesForWeek: {} | |
} | |
]; | |
final = [{ | |
id: "P-011", | |
taskId: "T-011", | |
timeEntriesForWeek: {} | |
}, { | |
id: "P-012", | |
taskId: "T-70", | |
timeEntriesForWeek: {}, | |
tasks: [{ | |
id: "P-012", | |
taskId: "T-70", | |
timeEntriesForWeek: {} | |
}, { | |
id: "P-012", | |
taskId: "Task 90", | |
timeEntriesForWeek: {} | |
}, { | |
id: "P-012", | |
taskId: "T-100", | |
timeEntriesForWeek: {} | |
}] | |
}, { | |
id: "P-013", | |
taskId: "T-70", | |
timeEntriesForWeek: {} | |
}];; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment