var o = {["k"](){}}; // {k: ƒ}
o.k();
Here you can see an example:

How {["k"](){}} is compiled to an object which has a key k inside which is a function?
{["k"](){}}
equals:
{
k(){}
}
Which is ES2015 short method syntax for:
{
k: function(){}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With