code: async function last(iterable) {
      var e_12, _a;
      let last = undefined;
      try {
          for (var iterable_10 = __asyncValues(iterable), iterable_10_1; iterable_10_1 = await iterable_10.next(), !iterable_10_1.done;) {
              const item = iterable_10_1.value;
              last = item;
          }
      }
      catch (e_12_1) { e_12 = { error: e_12_1 }; }
      finally {
          try {
              if (iterable_10_1 && !iterable_10_1.done && (_a = iterable_10.return)) await _a.call(iterable_10);
          }
          finally { if (e_12) throw e_12.error; }
      }
      return last;
  }
docs: Take only the last item in an iterable sequence