it
    Preparing search index...

    Function default

    • Returns the last item of an (async) iterable, unless empty, in which case return undefined

      Type Parameters

      • T

      Parameters

      Returns undefined | T

    • Returns the last item of an (async) iterable, unless empty, in which case return undefined

      Type Parameters

      • T

      Parameters

      • source: Iterable<T, any, any> | AsyncIterable<T, any, any>

      Returns Promise<undefined | T>