• Returns whether the given array is not empty

    Parameters

    • Optionalarray: null | any[] | readonly any[]

      the array to check

    Returns boolean

    whether the given array is not empty

    isNotEmpty(['foo', 'bar']);    // true