![]() |
VOOZH | about |
Lodash_.unzipWith() method accepts iteratee to specify how regrouped values should be combined. The iteratee is invoked with the elements of each group.
_.unzipWith(array, [iteratee = _.identity]);Example 1: In this example, we are unzipping the given zipped array and using the subtract method for subtracting the values of that array.
Output:
[8, 165, 355]Example 2: In this example, we are unzipping the given zipped array and using the add method for adding the values of that array.
Output:
[13, 205, 601]