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

10 lines
261 B
JavaScript
Raw Normal View History

var globals, name, _results;
2010-07-29 04:51:35 +00:00
var __hasProp = Object.prototype.hasOwnProperty;
2010-11-21 17:38:27 +00:00
globals = ((function() {
_results = [];
for (name in window) {
if (!__hasProp.call(window, 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);