Files
coffeescript/documentation/js/object_comprehensions.js
Jeremy Ashkenas c50cf23b7b CoffeeScript 0.9.4
2010-09-21 23:58:05 -04:00

16 lines
359 B
JavaScript

var _ref, _result, age, ages, child, yearsOld;
var __hasProp = Object.prototype.hasOwnProperty;
yearsOld = {
max: 10,
ida: 9,
tim: 11
};
ages = (function() {
_result = []; _ref = yearsOld;
for (child in _ref) {
if (!__hasProp.call(_ref, child)) continue;
age = _ref[child];
_result.push(child + " is " + age);
}
return _result;
})();