Options
All
  • Public
  • Public/Protected
  • All
Menu

Module zipWith

Index

References

Functions Array

References

Renames and re-exports zipWith

Array Functions

  • zipWith<T>(arrays: T[][], iteratee?: Function): T[]
  • This method is like zip except that it accepts iteratee to specify how grouped values should be combined. The iteratee is invoked with the elements of each group: (...group).

    since

    5.7.0

    see

    unzip,unzipWith,zip,zipObject,zipObjectDeep,zipWith

    example
    zipWith([1, 2], [10, 20], [100, 200], (a, b, c) => a + b + c)
    // => [111, 222]

    Type parameters

    • T

    Parameters

    • arrays: T[][]

      The arrays to process.

    • Optional iteratee: Function

      The function to combine grouped values.

    Returns T[]

    Returns the new array of grouped elements.