Been going around in circles with this for a while.
For example let's say I have different times slots stored as this
let timechunks1 = [["09:00", "10:00", "11:00"], ["09:00", "10:00", "11:00"], ["09:00", "10:00", "11:00", "12:00"]]
let timechunks2 = [["09:00", "10:00", "11:00"], ["09:00", "10:00", "11:00"], ["09:00", "10:00"]]
for (let i=0; i< timechunks.length; i++) {
differences.push(_.difference(timechunks[0], timechunks[i]))
}
Would need to extract 12:00 since it doesn't appear in others. Closest I got was with underscore _difference but alas it's not doing what I expected.
For timechunks1 I'm looking to return "12:00" For timechunks2 I'm looking for a way to return "11:00"
Added another example
[
["09:00", "10:00", "11:00" ,"13:00"],
["09:00", "10:00", "11:00", "13:00"],
["09:00", "10:00", "11:00", "12:00"]
]
for which it would return ["13:00", "12:00"]