Function pickAny

  • Pick any arbitrary element from the set.

    Type Parameters

    • T

    Parameters

    • set: ReadonlySet<T>

    Returns T | undefined

    An item in the set. Unless the set is empty, then it returns undefined.