It is possible to validate an array like this:
const Array = [[1, 2], ['hello', 'hi'], []]
I need to kwon when one array is empty or is ".length === 0" but only if one of the array is empty it say an error and if all are empty is the same error.
for example this is an error
const Array = [[1, 2], ['hello', 'hi'], []]
const Array = [[1, 2], [], []]
const Array = [[], ['hello', 'hi'], []]
when all array has values then do something else like show an alert
const, which shouldn't beArrayanyways, sinceArrayis a predefined constructor.