Tweakr
    Preparing search index...

    Function union

    • Creates an array of unique values from all given arrays.

      Type Parameters

      • T

      Parameters

      • ...arrays: T[][]

        Arrays to combine

      Returns T[]

      Array of unique values

      union([1, 2], [2, 3]); // [1, 2, 3]
      

      1.2.0