Skip to content

Instantly share code, notes, and snippets.

@harlantwood
Created April 17, 2013 06:41
Show Gist options
  • Save harlantwood/5402243 to your computer and use it in GitHub Desktop.
Save harlantwood/5402243 to your computer and use it in GitHub Desktop.
Why JS programmers hate Coffee
colors = (tag.toLowerCase() for tag in node.tags when tag.toLowerCase() in COLORS)
colors = (function() {
var _j, _len1, _ref2, _ref3, _results1;
_ref2 = node.tags;
_results1 = [];
for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) {
tag = _ref2[_j];
if (_ref3 = tag.toLowerCasease(), __indexOf.call(COLORS, _ref3) >= 0) {
_results1.push(tag.toLowerCase());
}
}
return _results1;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment