function fetchAllAndCreateGraph(urls) {
  Promise.all(
      urls.map(url => fetch(url)
               .then(response => response.ok ? response.json() : undefined)))
      .then(jsonContents => createGraph.apply(this, jsonContents));
}
/**
 * Fetches all the urls, and calls {@link createGraph} with the JSON contents.
 */
Fetches all the urls, and calls  createGraph with the JSON contents.
Fetches all the urls and calls createGraph with the JSON contents .
function fetchAllAndCreateGraph(urls) {
  Promise.all(
      urls.map(url => fetch(url)
               .then(response => response.ok ? response.json() : undefined)))
      .then(jsonContents => createGraph.apply(this, jsonContents));
}
function fetchAllAndCreateGraph ( urls ) { Promise . all ( urls . map ( url => fetch ( url ) . then ( response => response . ok ? response . json ( ) : undefined ) ) ) . then ( jsonContents => createGraph . apply ( this , jsonContents ) ) ; }
Fetches all the urls, and calls {@link createGraph} with the JSON contents.
Fetches all the urls and calls { @link createGraph } with the JSON contents .