mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Remove references to _.
This commit is contained in:
@@ -3,12 +3,11 @@ import arrayMap from './_arrayMap.js';
|
||||
import unzip from './unzip.js';
|
||||
|
||||
/**
|
||||
* This method is like `_.unzip` except that it accepts `iteratee` to specify
|
||||
* 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} array The array of grouped elements to process.
|
||||
@@ -17,10 +16,10 @@ import unzip from './unzip.js';
|
||||
* @returns {Array} Returns the new array of regrouped elements.
|
||||
* @example
|
||||
*
|
||||
* var zipped = _.zip([1, 2], [10, 20], [100, 200]);
|
||||
* var zipped = zip([1, 2], [10, 20], [100, 200]);
|
||||
* // => [[1, 10, 100], [2, 20, 200]]
|
||||
*
|
||||
* _.unzipWith(zipped, _.add);
|
||||
* unzipWith(zipped, add);
|
||||
* // => [3, 30, 300]
|
||||
*/
|
||||
function unzipWith(array, iteratee) {
|
||||
|
||||
Reference in New Issue
Block a user