-
Notifications
You must be signed in to change notification settings - Fork 679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dictionary foreach #1759
Comments
Hi! Can someone help me? I tried different options but it didn’t work, sorting through the dictionary... |
https://github.com/Tencent/puerts/blob/master/unity/Assets/core/upm/Editor/Resources/puerts/templates/dts.tpl.mjs#L241 and I remember that some has submitted a PR to support |
Hi! thanks, but I don't quite understand how to use it... for (var item of dic){ Error: TypeError: dicis not iterable Try:
Error: Type 'KeyValuePair$2<string, object>' must have a 'Symbol.iterator' method that returns an iterator. |
Well you can try the first example |
I don't quite understand how I should use this, can you help me? |
How can I iterate through a Dictionary in JavaScript?
Analogue C#
foreach (KeyValuePair<string, object> n in dic)
The text was updated successfully, but these errors were encountered: