array.switch?

Struggling with how to separate the first row of a two-dimensional array from the rest of the rows in the array.

d3 needs it like that for a chord diagram.