Function isEmptySync

  • Checks if an input sync iterable is empty. Returns a boolean value.

    Returns

    A function that accepts an input sync iterable and returns a boolean value.

    Example

    const input = [1, 2, 3];
    const empty = isEmptySync()(input);
    console.log(empty); // Logs false

    Remarks

    Available as isEmpty when imported from peter-piper/sync.

    Returns ((input: Iterable<unknown>) => boolean)

      • (input: Iterable<unknown>): boolean
      • Parameters

        • input: Iterable<unknown>

        Returns boolean

Generated using TypeDoc