MCPcopy
hub / github.com/lodash/lodash / unzipWith

Function unzipWith

lodash.js:8597–8608  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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

Callers 1

lodash.jsFile · 0.85

Calls 3

unzipFunction · 0.85
arrayMapFunction · 0.85
applyFunction · 0.85

Tested by

no test coverage detected