jashkenas--coffeescript/documentation/js/multiple_return_values.js

5 lines
217 B
JavaScript
Raw Normal View History

2010-09-22 03:58:05 +00:00
var _ref, city, forecast, temp, weatherReport;
2010-07-29 04:51:35 +00:00
weatherReport = function(location) {
return [location, 72, "Mostly Sunny"];
};
2010-10-05 03:21:16 +00:00
_ref = weatherReport("Berkeley, CA"), city = _ref[0], temp = _ref[1], forecast = _ref[2];