Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: How to loop through IEnumerable in javascript

0
0
Greetings!

You should be able to use the IEnumerable interface directly. For example:
var results = productManager.Search('price > 100');
var enumerator = results.GetEnumerator();
while (enumerator.MoveNext()) {
    console.WriteLine(enumerator.Current.Name);
}
Thanks for your question, and good luck!

Viewing all articles
Browse latest Browse all 2297