Rob Williams

Generation

generate functionSat, 12 Nov 2022

Gantt chart scheduling app

function getScheduleFromGantt(gantt) { const tasks = {} const edges = [] for (const {name, start, end, children} of gantt) { tasks[name] = {start, end} for (const child of children) { edges.push([name, child]) } } return tasks, edges }

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant