'NODEJS Count all array number [closed]

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

enter image description here



Solution 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1