• Returns whether the given array is empty

    Parameters

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

      the array to check

    Returns boolean

    whether the given array is empty

    isEmpty([]);    // true