guys can someone explain what ([head, ...[headTail, ...tailTail]])
in the input of this link solution is doing? I can't comment and ask the writer due to low reputation!
he is writing a function that takes an array of arrays in input (based on where he calls it) but although I know few things about rest and spread in Java Script I cant figure this out!