JSFiddle - React, Tailwind, and code Playground

Interleave arrays

by tonytlwu

JavaScript

function interleaveArrays(i) {
 // i is an array of arrays
 // Interleave the contens and return the result
 // e.g. [['a', 'b', 'c'], [1, 2, 3, 4]] => ['a', 1, 'b', 2, 'c', 3, 4]
 //
 // BONUS: Using lodash and ES6
}