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

6 lines
167 B
CoffeeScript

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