I am a software development engineer in test for Infosys. My job is officially to write automated tests in Selenium Webdriver. I'm also a web developer as a hobbyest
Software dev at Netflix | DC techie | Conference speaker | egghead Instructor | TC39 Educators Committee | Girls Who Code Facilitator | Board game geek | @laurieontech on twitter
Destructuring
So before ES2015 and destructuring we had this:
or for arrays
Now it's prettier with
or for arrays:
It comes really handy when iterating over
Object.entries
, which gives you an array like:[ [key1, value1], [key2, value2] . . . . [keyN, valueN] ]
Because you can do this:
Or this
It's nice, like python packing/unpacking:
I mean, sure it can get ugly:
but that goes for anything in programming.
Definitely my favorite!