Home > Back-end >  NODEJS Count all array number
NODEJS Count all array number

Time:03-21

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

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

  • Related