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

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>