Created
April 17, 2013 06:41
-
-
Save harlantwood/5402243 to your computer and use it in GitHub Desktop.
Why JS programmers hate Coffee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
colors = (tag.toLowerCase() for tag in node.tags when tag.toLowerCase() in COLORS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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