For of

    0

    5

    My JavaScript recipes

    The code is iterating through the objects in the array. The iterator variable is pointing to the first object in the array, so the code is executing for each object in the array. Inside the for loop, there is a variable called key that is set to the value of the first object in the array.

    Shortcut: for.of

    for (const element of object) {
      
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.