DE
Size: a a a
DE
p
L
DE
p
p
L
L
L
L
L
interleave([1, 2, 3], ["c", "d", "e"]) === [1, "c", 2, "d", 3, "e"]
p
L
AK
p
L
function interleave(...args) {
const ret = []
for(let i = 0, len = Math.max(...args.map(v => v.length)); i < len; i++)
args.map(a => ret.push(i < a.length ? a[i] : null))
return ret;
}
L
L
AK
L