* This method is like `_.unzip` except that it accepts `iteratee` to specify * how regrouped values should be combined. The iteratee is invoked with the * elements of each group: (...group). * * @static * @memberOf _ * @since 3.8.0 * @category Array * @param {
(array, iteratee)
| 8595 | * // => [3, 30, 300] |
| 8596 | */ |
| 8597 | function unzipWith(array, iteratee) { |
| 8598 | if (!(array && array.length)) { |
| 8599 | return []; |
| 8600 | } |
| 8601 | var result = unzip(array); |
| 8602 | if (iteratee == null) { |
| 8603 | return result; |
| 8604 | } |
| 8605 | return arrayMap(result, function(group) { |
| 8606 | return apply(iteratee, undefined, group); |
| 8607 | }); |
| 8608 | } |
| 8609 | |
| 8610 | /** |
| 8611 | * Creates an array excluding all given values using |