Switch table rows and columns by copy and pasting from an Excel document or other tab-separated table.
export const take = [{ type: "list" }]
export const make = (list) => {
const tab = "\t"
const max = Math.max(...list.map((e) => e.split(tab).length))
return Array.from({ length: max }, (e, i) =>
list.map((row) => row.split(tab)[i]).join(tab)
)
}