1234567891011121314151617181920212223242526272829303132 |
- var baseRest = require('./_baseRest'),
- unzipWith = require('./unzipWith');
- var zipWith = baseRest(function(arrays) {
- var length = arrays.length,
- iteratee = length > 1 ? arrays[length - 1] : undefined;
- iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;
- return unzipWith(arrays, iteratee);
- });
- module.exports = zipWith;
|