Can someone help me understand how to calculate the total number of elements in nested arrays like [[1,2,3],[1,2],[]]
? I'm looking for a way to find the sum of all the entries in the arrays. For this specific example, the answer would be 5
. The content within the arrays is not important to me, just their lengths.
Thank you for your assistance!