artdaq_node_server  v1_00_07
 All Classes Namespaces Files Variables Pages
zipWith.js
1 var baseRest = require('./_baseRest'),
2  unzipWith = require('./unzipWith');
3 
24 var zipWith = baseRest(function(arrays) {
25  var length = arrays.length,
26  iteratee = length > 1 ? arrays[length - 1] : undefined;
27 
28  iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;
29  return unzipWith(arrays, iteratee);
30 });
31 
32 module.exports = zipWith;