• Checks if an Iterable contains any element.

    Remarks

    This function will consume the first element

    Example

    const iterable = [];
    const result = isEmtpy(iterable);
    console.log(result); // true

    Returns

    true if the Iterable is empty, otherwise false

    Type Parameters

    • T

      the Iterable value type

    Parameters

    • iterable: Iterable<T>

      the Iterable to check

    Returns boolean

Generated using TypeDoc