News for hackers. Stuff that matters.
Re:JavaScript Promises: There and back again by spion on Tuesday December 17, 2013 @07:15PM (#6924949)

  var just = property => object => {
    var o = {}; 
    o[property] = object[property]; 
    return o;
  }

  Credentials.get({token})
    .then(just('username'))
    .then(withThis(User, User.get));
withThis available in a comment below.

There are no comments on this comment yet.