This will be a short post because it will set up for my next much longer post. Basically, I need to write a function that transpose an array. I’d like to use Ramda JS and ES6 syntax.
Of course, someone else already asked and several others already answered the question. But since an answer based on Ramda JS and ES6 has not been answered yet, I chime in.
I've got an array of arrays, something like: [ [1,2,3] [1,2,3] [1,2,3] ] I would like to invert it to get the following…stackoverflow.com
Here’s my solution:
And the playground.