You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure what I need to add or if this is even possible? Can you advise what I need to do in order to obtain the index of the enumerated item. Obviously I could roll this back to a simple for loop or add my own index but I am trying to make the code work in the same way as a Javascript array object.
The text was updated successfully, but these errors were encountered:
I have a JavaScript forEach iterating over a Host Object which has a simple IEnumerable Implemented
The JavaScript works fine if I issue a simple
But if I want the Index too
n is Undefined.
Not sure what I need to add or if this is even possible? Can you advise what I need to do in order to obtain the index of the enumerated item. Obviously I could roll this back to a simple for loop or add my own index but I am trying to make the code work in the same way as a Javascript array object.
The text was updated successfully, but these errors were encountered: