minor tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-10-16 02:02:21 +03:00
parent 810ccc7c04
commit 8b199318a9

View File

@ -334,12 +334,13 @@ function(func, ...arrays){
// build the zip item...
// NOTE: this is done this way to preserve array sparseness...
var s = arrays
.reduce(function(res, a, j){
//a.length > i
i in a
&& (res[j] = a[i])
return res
}, new Array(arrays.length))
.reduce(
function(res, a, j){
//a.length > i
i in a
&& (res[j] = a[i])
return res },
new Array(arrays.length))
return arrays
// check that at least one array is longer than i...
.reduce(function(res, a){
@ -362,5 +363,6 @@ function(func, ...arrays){
/**********************************************************************
* vim:set ts=4 sw=4 : */ return module })