Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (7 sloc) 0.307 kB
# Array pattern mathing
# Sample taken from: http://coffeescript.org/#destructuring
weatherReport = (location) ->
# Make an Ajax request to fetch the weather...
["State College, PA", 72, "Sunny"]
[city, temperature, forecast] = weatherReport "16801"
console.log "#{city}: #{temperature} #{forecast}"
Jump to Line
Something went wrong with that request. Please try again.