Function isEmpty

  • Checks if an input iterable is empty. Returns a promise that resolves to a boolean value.

    Returns

    A function that accepts an input iterable and returns a promise that resolves to a boolean value.

    Example

    const input = [1, 2, 3];
    const empty = isEmpty()(input);

    (async () => {
    console.log(await empty); // Logs false
    })();

    Returns ((input: AnyIterable<unknown>) => Promise<boolean>)

      • (input: AnyIterable<unknown>): Promise<boolean>
      • Parameters

        Returns Promise<boolean>

Generated using TypeDoc