jashkenas/coffee-script — pull request #2058 by superjoe30 (2012-01-20 07:23:33+00:00)
Title: this patch adds syntax to coffeescript for object attribute access with a default

For example, you can do:

people =
jeff: 1
shari: 2

log people['wesley', 10]

which will compile into:

var people;

people = {
jeff: 1,
shari: 2
};

log('wesley' in people ? people['wesley'] : 10);