Tweakr
    Preparing search index...

    Function zipWith

    • Like zip, but accepts a function to combine elements.

      Type Parameters

      • T extends any[]
      • R

      Parameters

      • arrays: T[]

        Arrays to zip

      • fn: (...args: any[]) => R

        Combiner function

      Returns R[]

      Array of combined results

      zipWith([1,2],[3,4], (a,b)=>a+b); // [4,6]
      

      1.2.0