PageRenderTime 18ms CodeModel.GetById 13ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/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
 1// Generated by CoffeeScript 1.10.0
 2var age, ages, child, yearsOld;
 3
 4yearsOld = {
 5  max: 10,
 6  ida: 9,
 7  tim: 11
 8};
 9
10ages = (function() {
11  var results;
12  results = [];
13  for (child in yearsOld) {
14    age = yearsOld[child];
15    results.push(child + " is " + age);
16  }
17  return results;
18})();