News for hackers. Stuff that matters.
Re:A summary of ECMAScript 6 features by nawitus on Sunday February 15, 2015 @08:19AM (#9052524)
And the promise version for comparison:

    app.get('/thing', function (req, res) {
      db.get({user: req.user}).done(user => {
        res.send({user:user});
      }, error => {
        res.send(400);
      });
    });

There are no comments on this comment yet.