@cprecioso/async-iterable-helpers
    Preparing search index...

    Function last

    • Consumes the whole iterable and keeps the last item.

      Type Parameters

      • T

      Returns SinkFn<T, Awaited<T> | undefined>

      A sink resolving to the last item, or undefined if the iterable is empty.