Function symmetricDifference

  • Obtain values present in either sorted array but not both.

    Type Parameters

    • T

    • U = T

    Parameters

    • x: T[]

      a sorted array

    • y: T[]

      another sorted array

    • fc: CompareFunction<T | U> = null

      compare function (a, b)

    • fm: MapFunction<T, T | U> = null

      map function (v, i, x)

    Returns T[]

    x-y ∪ y-x

Generated using TypeDoc