Function arrayMatchOneExactly

  • Tests if exactly one element of the given array matches the predicate.

    Type Parameters

    • T

    Parameters

    • array: T[]

      The array to test

    • predicate: Predicate<T>

      The predicate used to test each element of the given array

    Returns boolean

    true if one element only matches the given predicate, false otherwise.

Generated using TypeDoc