How to iterate over properties of a JavaScript objectОпубликовано: 8 мая 2019 г.
In addition to arrays, the "For loop" icon in Drakon.Tech can iterate over JavaScript objects.
https://drakon.tech How to build a loop that iterates over properties of a JavaScript object.
Add a "For loop" icon.
Inside the loop start icon, put the key variable, comma, the value variable, semicolon, and then the collection.
Example:
key, value; object
Iterating a JavaScript object with a For loop icon:
Note:
The collection expression will be evaluated only once.
Only own properties of the object will be included in iteration.
Do not use any keywords like "for" or "foreach".
Do not use "let" or "var".
It is okay to use "await" inside the loop.