Skip to content

Instantly share code, notes, and snippets.

@talkol
Last active October 22, 2016 11:12
Show Gist options
  • Select an option

  • Save talkol/ffdcf5cae1cd64b6fd3fe67e87b135b1 to your computer and use it in GitHub Desktop.

Select an option

Save talkol/ffdcf5cae1cd64b6fd3fe67e87b135b1 to your computer and use it in GitHub Desktop.
const servers = [
'http://www.sevengramscaffe.com',
'http://www.hernanparra.co',
'http://www.thetimeandyou.com',
'http://www.luchoycarmelo.com'
];
pingServers(servers).then( function (failedServers) {
for (const url in failedServers) {
console.log(`${url} failed ${failedServers[url]} times`);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment