Skip to content
Realm Notes
Search
⌘
Ctrl
K
Main Navigation
Home
Appearance
Menu
Return to top
On this page
for...in
vs.
for...of
Use
for...in
for objects, or when you specifically need property names.
Use
for...of
for arrays, strings, maps, sets, and other iterables.