kriskowal/q — pull request #604 by kahnjw (2014-11-05 18:53:42+00:00)
Title: Add a wrap sugar function to promises

This adds a function `wrap` that is essentially a sugar method for:

```
var wrapperObject = {};
promise.then(function(value) {
wrapperObject.key = value;
return wrapperObject;
});
```

This becomes:

```
var wrapperObject = {};
promise.wrap(wrapperObject, 'key');
```

This function was originally written as a promisehelper function:

https://www.npmjs.org/package/promisehelpers