Skip to content

Instantly share code, notes, and snippets.

@AlexGaspar
Created September 18, 2014 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexGaspar/742c10aee92ec651f0bc to your computer and use it in GitHub Desktop.
Save AlexGaspar/742c10aee92ec651f0bc to your computer and use it in GitHub Desktop.
{
"popular": [
{
"url": "http://www.cnn.com/",
"title": "CNN.com - Breaking News, U.S., World, Weather, Entertainment...",
"backlinks": 11436309
},
{
"url": "http://cnn.com/",
"title": {
"isFulfilled": false,
"isRejected": false
},
"backlinks": 2065106
},
{
"url": "http://www.cnn.com/video/",
"title": {
"isFulfilled": false,
"isRejected": false
},
"backlinks": 660057
},
{
"url": "http://money.cnn.com/",
"title": "CNNMoney - Business, financial and personal finance news",
"backlinks": 1467096
},
{
"url": "http://edition.cnn.com/",
"title": "CNN.com International - Breaking, World, Business, Sports, Entertainment...",
"backlinks": 2868166
}
]
}
@AlexGaspar
Copy link
Author

Promise.resolve(result)
.map(Promise.props)
.all()
.then(resolve)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment