$zip

The `$zip` operator transposes an array of input arrays so that the first element of the output array contains an array of the first elements of the input arrays, the second element contains an array of the second elements, and so on.

Syntax

{
  $zip: {
    inputs: [ <array1>, <array2>, ... ],
    useLongestLength: <boolean>,
    defaults: <array>
  }
}

Parameters

inputsstringrequired

An array of expressions that resolve to arrays.

useLongestLengthstring

A boolean which specifies whether the length of the longest array determines the number of output array elements.

defaultsstring

An array of default values used if inputs contains arrays of different lengths.