Function zip

  • Given a list of iterables, make a single iterable. The resulting iterable will contain arrays. The first entry in the output will contain the first entry in each of the inputs. The nth entry in the output will contain the nth entry in each of the inputs. This will stop iterating when the first of the inputs runs out of data.

      for (const [rowHeader, rowBody] of zip(sharedStuff.rowHeaders, thisTable.rowBodies)) {
    ...
    }

    Type Parameters

    • T extends any[]

    Parameters

    • Rest ...toZip: Iterableify<T>

      Any number of iterables.

    Returns Generator<T>

Generated using TypeDoc