• Checks whether the list has a current element.

    Type Parameters

    • T

    Parameters

    • list: List<T>

      The list to be checked.

    Returns boolean

    Whether the list has a current element.

    Examples

    import { empty, isNull, repeat } from "./list.ts";
    import { assertEquals } from "../deps.ts";

    assertEquals(isNull(empty()), true);
    assertEquals(isNull(repeat(0)), false);

Generated using TypeDoc