/documentation/js/object_comprehensions.js
http://github.com/jashkenas/coffee-script · JavaScript · 18 lines · 15 code · 2 blank · 1 comment · 1 complexity · 399cd9852632eb6309840c0b9e5d3fbd MD5 · raw file
- // Generated by CoffeeScript 1.10.0
- var age, ages, child, yearsOld;
- yearsOld = {
- max: 10,
- ida: 9,
- tim: 11
- };
- ages = (function() {
- var results;
- results = [];
- for (child in yearsOld) {
- age = yearsOld[child];
- results.push(child + " is " + age);
- }
- return results;
- })();