Hacker News new | past | comments | ask | show | jobs | submit login

It is basically equivalent to `LoginForm = this.LoginForm`. It is called destructuring and is one of the nice conveniences of es6 javascript. Importantly you can also do this:

    var o = {p: 42, q: true};
    var {p, q} = o;

    console.log(p); // 42
    console.log(q); // true



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: