You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
381 B

2 years ago
var map = require('./map');
var pluck = require('./pluck');
var max = require('./max');
exports = function(arr) {
var len = max.apply(
null,
map(arr, function(arr) {
return arr.length;
})
);
var ret = Array(len);
for (var i = 0; i < len; i++) {
ret[i] = pluck(arr, i);
}
return ret;
};
module.exports = exports;