Function isEmpty

  • Checks if the iterable is empty, and emits a boolean flag.

    import {pipe, isEmpty} from 'iter-ops';

    const i = pipe(
    [],
    isEmpty()
    );

    console.log(...i); //=> true

    console.log(i.first); //=> true

    Type Parameters

    • T

    Returns Operation<T, boolean>