• Returns whether all the given texts are not empty

    Parameters

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

      the texts to check

    Returns boolean

    whether all the given texts are not empty

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