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

Want to kickstart your project?Use the new AI Studio to create your code