forecasetCities is an asynchronous function (defined below) that will return the three day forecast of the cities passed in. Use the object viewer pop up to select "Chart" and compare them:
var Promise = require("bluebird"); var R = require("ramda"); await forecastCities("New York", "San Francisco");
async function forecastCities() { var forecast = require("notebook")("tonic/forecast/1.0.0"); var promises = R.map(forecast.threeDay, arguments); return R.zipObj(arguments, await Promise.map(promises, R.identity)); }

no comments

    sign in to comment

    running