Prelude API
    Preparing search index...

    Function maybeUnsortedLast

    • Returns the last element from an iterable, or undefined if the iterable is empty.

      Type Parameters

      • T

      Parameters

      • values: Iterable<T>

        The iterable to get the last element from

      Returns T | undefined

      The last element in the iterable, or undefined if empty