How can i catch the array length in truffle test. #5352
Unanswered
kh0alu
asked this question in
General Q&A
Replies: 1 comment
-
Hey @kh0alu, thanks for submitting this. I believe your question is more related to JavaScript than Truffle itself but I'll gladly answer it for you here! When looking to get the length of an array you can use the For example
If we were to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i know to get a value of one element in array we use instance.arrayName(index).then....
but how can i get the number of array length, please tell me how to do this. Thank you so much!
Beta Was this translation helpful? Give feedback.
All reactions