it("Throws an exception if there are no values", () => {
    const lastOnEmptyIterable = () => last([]);

    expect(lastOnEmptyIterable).toThrow(Error);
    expect(lastOnEmptyIterable).toThrow(