I wanna get number of total array in NodeJS. Any way can do this?
For example: In picture have array from 0 > 558. Then I want a function to give the count is 559
Thank you.
Hieu
CodePudding user response:
The array is only broken in console since it is very long: (i.e: if the length of array is longer than 100 then the console will break it to show it clearly..). if u logged the length then it will show 559, just do arr.length