From 8b199318a949abb21e3ea459dfe6a7065100047f Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 16 Oct 2020 02:02:21 +0300 Subject: [PATCH] minor tweaks... Signed-off-by: Alex A. Naanou --- Array.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Array.js b/Array.js index 9ee90c0..17b9f0a 100644 --- a/Array.js +++ b/Array.js @@ -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 })