jashkenas--coffeescript/documentation/coffee/multiple_return_values.coffee

5 lines
166 B
CoffeeScript

weatherReport = (location) ->
# Make an Ajax request to fetch the weather...
[location, 72, "Mostly Sunny"]
[city, temp, forecast] = weatherReport "Berkeley, CA"