DRAKON.SU https://forum.drakon.su/ |
|
How to iterate over an object https://forum.drakon.su/viewtopic.php?f=218&t=6566 |
Страница 1 из 1 |
Автор: | Владимир Паронджанов [ Среда, 22 Май, 2019 21:08 ] |
Заголовок сообщения: | How to iterate over an object |
How to iterate over an object https://www.youtube.com/watch?time_cont ... mzA3Ra3CVo Цитата: 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 https://drakon.tech/js/tutorials/iterate-over-object Цитата: 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. |
Страница 1 из 1 | Часовой пояс: UTC + 3 часа |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |