• Returns whether any of the given texts is empty

    Parameters

    • Optionaltexts: (undefined | null | string)[]

      the texts to check

    Returns boolean

    whether any of the given texts is empty

    anyEmpty([null, undefined]);    // true
    anyEmpty(['foo', 'bar']); // false