Returns elements common to both arrays

  • Type Parameters

    • T

    Parameters

    • a: T[]

      First array

    • b: T[]

      Second array

    Returns T[]

    Array of elements present in both inputs