Why does object destructuring throw an error if there is no var
keyword in front of it?
{a, b} = {a: 1, b: 2};
throws Sy
Here's another way:
let {} = {a, b} = objectReturningFunction()
Pros:
Cons:
!(){...}()
IIFE.