News for hackers. Stuff that matters.
Re:Modern Javascript: Everything you missed over the last 10... by frankenst1 on Saturday May 15, 2021 @06:01PM (#27169419)

    let obj = {a:1},
        arr = [1], 
        map = new Map().set("a",1);    

    // Iterating over an object keys
    for (let x of Object.keys(obj)) {...}

    // an array
    for (let x of arr) {...}

    // or a map?
    for (let x of map) {...}

There are no comments on this comment yet.