Created
May 10, 2013 05:16
-
-
Save freshtonic/5552531 to your computer and use it in GitHub Desktop.
Remember to use: x = if foo then bar else baz
in coffeescript instead of x = foo ? bar : bar
This file contains hidden or 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
var _ref; | |
if (this.searchParams.featured) { | |
if ((_ref = (this.searchParams.featured || '').toLowerCase() === 'yes') != null) { | |
_ref; | |
} else { | |
({ | |
'yes': 'no' | |
}); | |
}; | |
} else { | |
void 0; | |
} |
This file contains hidden or 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
if @searchParams.featured | |
(@searchParams.featured || '').toLowerCase() == 'yes' ? 'yes' : 'no' | |
else | |
undefined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment