1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00
jashkenas--coffeescript/documentation/js/object_comprehensions.js

19 lines
291 B
JavaScript
Raw Normal View History

2015-05-14 11:23:10 +02:00
// Generated by CoffeeScript 1.9.3
var age, ages, child, yearsOld;
2010-07-29 00:51:35 -04:00
yearsOld = {
max: 10,
ida: 9,
tim: 11
};
2010-12-23 12:41:42 -08:00
ages = (function() {
2015-02-18 15:43:33 -05:00
var results;
results = [];
2010-10-04 23:21:16 -04:00
for (child in yearsOld) {
age = yearsOld[child];
2015-02-18 15:43:33 -05:00
results.push(child + " is " + age);
2010-07-29 00:51:35 -04:00
}
2015-02-18 15:43:33 -05:00
return results;
})();