Function getFirstCommonElements

  • Returns the first common elements of two arrays.

    Parameters

    • array1: any[]

      The first array.

    • array2: any[]

      The second array.

    Returns any[]

    The array of the first common elements.