Hi ,
Can you help me with this..cannot figure out why includes doesnt work ..
export const formatTaskList = (tasks) => {
for (let i=0 ; i < tasks.length ; i++){
if (tasks.staus.includes('DONE')){
tasks.title = '\u2705' + ' ' + tasks.title;
}else {
tasks.title = '\u274c' +' ' + tasks.title;
}
}
return tasks;
}