jashkenas--coffeescript/documentation/js/expressions_comprehension.js

11 lines
280 B
JavaScript
Raw Normal View History

2010-11-21 17:38:27 +00:00
var globals, name, _ref, _results;
2010-07-29 04:51:35 +00:00
var __hasProp = Object.prototype.hasOwnProperty;
2010-11-21 17:38:27 +00:00
globals = ((function() {
_ref = window;
_results = [];
for (name in _ref) {
2010-10-20 01:59:13 +00:00
if (!__hasProp.call(_ref, name)) continue;
2010-11-21 17:38:27 +00:00
_results.push(name);
2010-07-29 04:51:35 +00:00
}
2010-11-21 17:38:27 +00:00
return _results;
})()).slice(0, 10);