mirror of
https://github.com/flynx/types.js.git
synced 2025-10-29 02:20:07 +00:00
minor tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
810ccc7c04
commit
8b199318a9
14
Array.js
14
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 })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user