src/Utl.js
function interleave(...arrays) {
  var more = true;
  var n = 0;
  var result = [];
  while (more) {
    more = false;
    for (var array of arrays) {
      if (n >= array.length) continue;
      result.push(array[n]);
      more = true;
    }
    n++;
  }
  return result;
}
function interleave(...arrays) {
  var more = true;
  var n = 0;
  var result = [];
  while (more) {
    more = false;
    for (var array of arrays) {
      if (n >= array.length) continue;
      result.push(array[n]);
      more = true;
    }
    n++;
  }
  return result;
}
function interleave ( ... arrays ) { var more = true ; var n = 0 ; var result = [ ] ; while ( more ) { more = false ; for ( var array of arrays ) { if ( n >= array . length ) continue ; result . push ( array [ n ] ) ; more = true ; } n ++ ; } return result ; }
Interleave multiple arrays.
Interleave multiple arrays .