• Returns whether all the given texts are empty

    Parameters

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

      the texts to check

    Returns boolean

    whether all the given texts are empty

    allEmpty([null, undefined]);    // true
    allEmpty([null, 'true']); // false