Seeking a More Concise Way to Zip Multiple Arrays with Type Inference

I want to zip multiple arrays together and this is the best I could do:

ts 
const xs = [[1, 2, 3], ['a', 'b', 'c'], ['foo', 'bar', 'baz']]
const zipped = Array.reduce(
  xs.slice(1),
  xs[0].map(x => [x]),
  (a: any, b: any) => Array.zipWith(a, b, Array.append)
)


is there a more concise way to do this and get the type inference to work correctly?
Was this page helpful?