Below is my array:
var array = ["abc.mp3,Lmn.mp3","pqr.mp3","ppp.mp3,ggg.mp3"];
Now I want to count length of this record but I would like to treat comma separated records as not a single record
For eg: abc.mp3, Lmn.mp3 want to to treat as 2 separated records by splitting with comma.
Expected length of array should be: 5
Is there any method which will simplify the process of counting this length instead of doing loop and then splitting each record by comma and then counting length one by one?